From: eazimi Date: Thu, 28 Jan 2021 18:08:06 +0000 (+0100) Subject: get_comm_irecv_raw_addr() defined and implemented X-Git-Tag: v3.27~486 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5c95f75dbdf957d71b204661227e605c346b480b?hp=01ba483c483e8755fbaca5922f051efd9d4e11ce get_comm_irecv_raw_addr() defined and implemented --- diff --git a/src/mc/api.cpp b/src/mc/api.cpp index a8f85a3a78..e472e21140 100644 --- a/src/mc/api.cpp +++ b/src/mc/api.cpp @@ -327,6 +327,12 @@ RemotePtr Api::get_comm_isend_raw_addr(smx_simcall_t return RemotePtr(static_cast(comm_addr)); } +RemotePtr Api::get_comm_irecv_raw_addr(smx_simcall_t request) const +{ + auto comm_addr = simgrid::simix::unmarshal_raw(request->result_); + return RemotePtr(static_cast(comm_addr)); +} + RemotePtr Api::get_comm_wait_raw_addr(smx_simcall_t request) const { auto comm_addr = simgrid::simix::unmarshal_raw(request->args_[0]); diff --git a/src/mc/api.hpp b/src/mc/api.hpp index 5c0b91bdc1..056e494777 100644 --- a/src/mc/api.hpp +++ b/src/mc/api.hpp @@ -59,6 +59,7 @@ public: // COMMUNICATION APIs RemotePtr get_comm_isend_raw_addr(smx_simcall_t request) const; + RemotePtr get_comm_irecv_raw_addr(smx_simcall_t request) const; RemotePtr get_comm_wait_raw_addr(smx_simcall_t request) const; RemotePtr get_comm_waitany_raw_addr(smx_simcall_t request, int value) const; std::string get_pattern_comm_rdv(RemotePtr const& addr) const;