X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/28bb7c8be1ed83295ff75f57c086493733a11228..fc6fb42c354e8c1c7f6f6526c560ba858d75c027:/src/s4u/s4u_mailbox.cpp diff --git a/src/s4u/s4u_mailbox.cpp b/src/s4u/s4u_mailbox.cpp index cff1a5f452..6e5f18d3b6 100644 --- a/src/s4u/s4u_mailbox.cpp +++ b/src/s4u/s4u_mailbox.cpp @@ -34,6 +34,11 @@ MailboxPtr Mailbox::byName(const char*name) return MailboxPtr(&mbox->piface_, true); } +MailboxPtr Mailbox::byName(std::string name) +{ + return byName(name.c_str()); +} + bool Mailbox::empty() { return pimpl_->comm_queue.empty();