X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f78e8f50ae6dc29c91974b032a68f81be9524a64..f2236ed8987d2350cba5d839b6420e53968b6225:/include/simgrid/s4u/mailbox.hpp diff --git a/include/simgrid/s4u/mailbox.hpp b/include/simgrid/s4u/mailbox.hpp index 5914a41065..2a75091cd9 100644 --- a/include/simgrid/s4u/mailbox.hpp +++ b/include/simgrid/s4u/mailbox.hpp @@ -38,6 +38,8 @@ protected: public: /** Retrieve the mailbox associated to the given string */ static Mailbox *byName(const char *name); + /** Returns whether the mailbox contains queued communications */ + bool empty(); private: smx_mailbox_t inferior_; @@ -47,4 +49,7 @@ private: #endif +XBT_PUBLIC(sg_mbox_t) sg_mbox_by_name(const char*name); +XBT_PUBLIC(int) sg_mbox_is_empty(sg_mbox_t mbox); + #endif /* SIMGRID_S4U_MAILBOX_HPP */