Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
test and fix Comm::set_payload_size + more chaining
[simgrid.git] / include / simgrid / s4u / Mailbox.hpp
index 87fa566..f42bd58 100644 (file)
@@ -112,8 +112,7 @@ public:
 
 template <typename T> CommPtr Mailbox::get_async(T** data)
 {
-  CommPtr res = get_init();
-  res->set_dst_data(reinterpret_cast<void**>(data), sizeof(void*));
+  CommPtr res = get_init()->set_dst_data(reinterpret_cast<void**>(data), sizeof(void*));
   res->vetoable_start();
   return res;
 }