X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81a26be55f972dc046ce7079131fec62eb992a7b..fff9fbf510e8ac37ddb3bb622453d8b598806adf:/src/s4u/s4u_Mailbox.cpp diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index fd5a442d04..d692395a97 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -129,11 +129,16 @@ CommPtr Mailbox::get_init() } kernel::activity::ActivityImplPtr -Mailbox::iprobe(int type, bool (*match_fun)(void*, void*, kernel::activity::CommImpl*), void* data) +Mailbox::iprobe(int type, const std::function& match_fun, void* data) { return kernel::actor::simcall_answered( - [this, type, match_fun, data] { return pimpl_->iprobe(type, match_fun, data); }); + [this, type, &match_fun, data] { return pimpl_->iprobe(type, match_fun, data); }); } + +void Mailbox::clear() { + pimpl_->clear(); +} + } // namespace s4u } // namespace simgrid