Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make isend return a ref on the created Comm
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Mar 2017 08:57:16 +0000 (10:57 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Mar 2017 08:57:16 +0000 (10:57 +0200)
include/simgrid/s4u/Actor.hpp
src/s4u/s4u_actor.cpp

index 2196ead..61402c7 100644 (file)
@@ -306,7 +306,7 @@ namespace this_actor {
   */
   XBT_PUBLIC(void) send(MailboxPtr chan, void* payload, double simulatedSize);
 
   */
   XBT_PUBLIC(void) send(MailboxPtr chan, void* payload, double simulatedSize);
 
-  XBT_PUBLIC(void) isend(MailboxPtr chan, void* payload, double simulatedSize);
+  XBT_PUBLIC(Comm&) isend(MailboxPtr chan, void* payload, double simulatedSize);
 
   /** @brief Returns the PID of the current actor. */
   XBT_PUBLIC(int) pid();
 
   /** @brief Returns the PID of the current actor. */
   XBT_PUBLIC(int) pid();
index c1c7ed2..8959135 100644 (file)
@@ -190,9 +190,9 @@ void send(MailboxPtr chan, void* payload, double simulatedSize)
   c.wait();
 }
 
   c.wait();
 }
 
-void isend(MailboxPtr chan, void* payload, double simulatedSize)
+Comm& isend(MailboxPtr chan, void* payload, double simulatedSize)
 {
 {
-  Comm::send_async(chan, payload, simulatedSize);
+  return Comm::send_async(chan, payload, simulatedSize);
 }
 
 int pid()
 }
 
 int pid()