X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/237fd22b56db7d1c67360c37559ce3aab16a002d..a707ad979be7c88d7581f403661c67598d320d55:/include/simgrid/s4u/Mailbox.hpp diff --git a/include/simgrid/s4u/Mailbox.hpp b/include/simgrid/s4u/Mailbox.hpp index 9687ef9ea9..3070b0a6e7 100644 --- a/include/simgrid/s4u/Mailbox.hpp +++ b/include/simgrid/s4u/Mailbox.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -110,7 +110,8 @@ public: /** Blocking data transmission with timeout */ void put(void* payload, uint64_t simulated_size_in_bytes, double timeout); - /** Creates (but don't start) a data reception onto that mailbox */ + /** Creates (but don't start) a data reception onto that mailbox. + * @verbatim embed:rst:inline You probably want to use :cpp:func:`simgrid::s4u::Comm::set_dst_data` and friends before starting that activity. @endverbatim */ CommPtr get_init(); /** Creates and start an async data reception to that mailbox */ template CommPtr get_async(T** data); @@ -122,12 +123,6 @@ public: /** Blocking data reception with timeout */ template T* get(double timeout); template std::unique_ptr get_unique(double timeout) { return std::unique_ptr(get(timeout)); } - -#ifndef DOXYGEN - XBT_ATTRIB_DEPRECATED_v331("Please use typed template Mailbox::get_async<>()") CommPtr get_async(void** data); - XBT_ATTRIB_DEPRECATED_v331("Please use typed template Mailbox::get<>()") void* get(); - XBT_ATTRIB_DEPRECATED_v331("Please use typed template Mailbox::get<>()") void* get(double timeout); -#endif }; template CommPtr Mailbox::get_async(T** data) @@ -150,21 +145,6 @@ template T* Mailbox::get(double timeout) get_async(&res)->wait_for(timeout); return res; } - -#ifndef DOXYGEN -inline CommPtr Mailbox::get_async(void** data) // XBT_ATTRIB_DEPRECATED_v331 -{ - return get_async(data); -} -inline void* Mailbox::get() // XBT_ATTRIB_DEPRECATED_v331 -{ - return get(); -} -inline void* Mailbox::get(double timeout) // XBT_ATTRIB_DEPRECATED_v331 -{ - return get(timeout); -} -#endif } // namespace s4u } // namespace simgrid