From: Fabien Chaix Date: Thu, 17 Mar 2022 23:05:53 +0000 (+0200) Subject: Guard MailboxImpl::clear() in a simcall X-Git-Tag: v3.32~361^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e469af84f265bb6bd333528c6d7aff6a232b2ee8 Guard MailboxImpl::clear() in a simcall --- diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index d692395a97..cd8da0d480 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -136,7 +136,7 @@ Mailbox::iprobe(int type, const std::functionclear(); + kernel::actor::simcall_answered([this]() { this->pimpl_->clear(); }); } } // namespace s4u