X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea10e88fd41a11386d9e3868d72ab8cb933a4292..26d24611e48c59ff331c105b5d8744336d3b0e50:/src/s4u/s4u_Mailbox.cpp diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index cd8da0d480..4621305dfd 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -12,8 +12,7 @@ XBT_LOG_EXTERNAL_CATEGORY(s4u); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_channel, s4u, "S4U Communication Mailboxes"); -namespace simgrid { -namespace s4u { +namespace simgrid::s4u { const xbt::string& Mailbox::get_name() const { @@ -135,12 +134,12 @@ Mailbox::iprobe(int type, const std::functioniprobe(type, match_fun, data); }); } -void Mailbox::clear() { - kernel::actor::simcall_answered([this]() { this->pimpl_->clear(); }); +void Mailbox::clear() +{ + kernel::actor::simcall_answered([this]() { this->pimpl_->clear(true); }); } -} // namespace s4u -} // namespace simgrid +} // namespace simgrid::s4u /* **************************** Public C interface *************************** */ sg_mailbox_t sg_mailbox_by_name(const char* alias)