X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d8612c62eaa05c2a8f916ea84eaab8a30b16826..4052b6d9960bd9792127d006c4f359b946cb7baa:/src/s4u/s4u_Mailbox.cpp diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index c135ce70c3..f57874e673 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -30,7 +30,7 @@ MailboxPtr Mailbox::byName(const char* name) { kernel::activity::MailboxImpl* mbox = kernel::activity::MailboxImpl::byNameOrNull(name); if (mbox == nullptr) { - mbox = simix::kernelImmediate([name] { return kernel::activity::MailboxImpl::byNameOrCreate(name); }); + mbox = simix::simcall([name] { return kernel::activity::MailboxImpl::byNameOrCreate(name); }); } return MailboxPtr(&mbox->piface_, true); } @@ -57,7 +57,7 @@ smx_activity_t Mailbox::front() void Mailbox::setReceiver(ActorPtr actor) { - simix::kernelImmediate([this, actor]() { this->pimpl_->setReceiver(actor); }); + simix::simcall([this, actor]() { this->pimpl_->setReceiver(actor); }); } /** @brief get the receiver (process associated to the mailbox) */