From e469af84f265bb6bd333528c6d7aff6a232b2ee8 Mon Sep 17 00:00:00 2001 From: Fabien Chaix Date: Fri, 18 Mar 2022 01:05:53 +0200 Subject: [PATCH] Guard MailboxImpl::clear() in a simcall --- src/s4u/s4u_Mailbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1