X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a08884c0afcf5031a7bae9b28c47de8572c91f19..7940e7c1b0f2897a82628c707408ad49debd1d3b:/src/s4u/s4u_comm.cpp diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index e24b4ec342..d26c4d6952 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -5,8 +5,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "msg/msg_private.h" -#include "msg/msg_mailbox.h" +#include "src/msg/msg_private.h" +#include "src/msg/msg_mailbox.h" #include "simgrid/s4u/comm.hpp" @@ -141,3 +141,12 @@ s4u::Comm &s4u::Comm::send_async(s4u::Actor *sender, Mailbox &dest, void *data, return res; } +s4u::Comm &s4u::Comm::recv_async(s4u::Actor *receiver, Mailbox &dest, void **data) { + s4u::Comm &res = s4u::Comm::recv_init(receiver, dest); + + res.setDstData(data); + + res.start(); + return res; +} +