From 5c95f75dbdf957d71b204661227e605c346b480b Mon Sep 17 00:00:00 2001 From: eazimi Date: Thu, 28 Jan 2021 19:08:06 +0100 Subject: [PATCH] get_comm_irecv_raw_addr() defined and implemented --- src/mc/api.cpp | 6 ++++++ src/mc/api.hpp | 1 + 2 files changed, 7 insertions(+) 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; -- 2.30.2