X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f58e0660b9c6d8bb61f878b21aa5a209325097c..21f6e059a47df7875f1dacf26ca1eb854f4e887b:/src/s4u/s4u_Mailbox.cpp diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index eda04e7c2a..b3a33a681d 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -73,7 +73,7 @@ kernel::activity::CommImplPtr Mailbox::front() const void Mailbox::set_receiver(ActorPtr actor) { - kernel::actor::simcall([this, actor]() { this->pimpl_->set_receiver(actor); }); + kernel::actor::simcall_answered([this, actor]() { this->pimpl_->set_receiver(actor); }); } /** @brief get the receiver (process associated to the mailbox) */ @@ -132,7 +132,8 @@ CommPtr Mailbox::get_init() kernel::activity::ActivityImplPtr Mailbox::iprobe(int type, bool (*match_fun)(void*, void*, kernel::activity::CommImpl*), void* data) { - return kernel::actor::simcall([this, type, match_fun, data] { return pimpl_->iprobe(type, match_fun, data); }); + return kernel::actor::simcall_answered( + [this, type, match_fun, data] { return pimpl_->iprobe(type, match_fun, data); }); } } // namespace s4u } // namespace simgrid