Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
populate s4u::mailbox
[simgrid.git] / include / simgrid / s4u / mailbox.hpp
index 5914a41..2a75091 100644 (file)
@@ -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 */