X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6d14999afc8567368d13d1b1ad108ac9ddae32ae..b98b530ed10d60d9c350bf4919896a0c50b649f3:/src/s4u/s4u_comm.cpp diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index 9f4ad0b438..abc76c9fc1 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -146,7 +146,8 @@ void Comm::cancel() commPimpl->cancel(); } -bool Comm::test() { +bool Comm::test() +{ xbt_assert(state_ == inited || state_ == started || state_ == finished); if (state_ == finished) { @@ -164,6 +165,11 @@ bool Comm::test() { return false; } +MailboxPtr Comm::getMailbox() +{ + return mailbox_; +} + void intrusive_ptr_release(simgrid::s4u::Comm* c) { if (c->refcount_.fetch_sub(1, std::memory_order_release) == 1) {