Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rely on template argument deduction (sonar, c++17).
[simgrid.git] / src / s4u / s4u_Mailbox.cpp
index a0c99e583262e60cc6b57abd18b5c3d2a8b42501..fb6de6333274e5e71a360ca3189e3532d7f7bf5f 100644 (file)
@@ -134,6 +134,12 @@ Mailbox::iprobe(int type, const std::function<bool(void*, void*, kernel::activit
   return kernel::actor::simcall_answered(
       [this, type, &match_fun, data] { return pimpl_->iprobe(type, match_fun, data); });
 }
+
+void Mailbox::clear()
+{
+  kernel::actor::simcall_answered([this]() { this->pimpl_->clear(); });
+}
+
 } // namespace s4u
 } // namespace simgrid