Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define macro XBT_ATTRIB_DEPRECATED_v340.
[simgrid.git] / include / simgrid / s4u / Mailbox.hpp
index d3bec3587dcf59d434594eb6ab944efbef14aa1d..b8eddff97667fbabb970e41fe7513c67e94bfbef 100644 (file)
@@ -38,7 +38,7 @@ public:
   /** @brief Retrieves the name of that mailbox as a C string */
   const char* get_cname() const;
 
-  /** Retrieve the mailbox associated to the given name. Mailboxes are created on demand. */
+  /** \static Retrieve the mailbox associated to the given name. Mailboxes are created on demand. */
   static Mailbox* by_name(const std::string& name);
 
   /** Returns whether the mailbox contains queued communications */
@@ -118,6 +118,9 @@ public:
   CommPtr get_init();
   /** Creates and start an async data reception to that mailbox */
   template <typename T> CommPtr get_async(T** data);
+  /** Creates and start an async data reception to that mailbox. Since the data location is not provided, you'll have to
+   * use Comm::get_payload once the comm terminates */
+  CommPtr get_async();
 
   /** Blocking data reception */
   template <typename T> T* get();