A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
populate s4u::mailbox
[simgrid.git]
/
include
/
simgrid
/
s4u
/
mailbox.hpp
diff --git
a/include/simgrid/s4u/mailbox.hpp
b/include/simgrid/s4u/mailbox.hpp
index
5914a41
..
2a75091
100644
(file)
--- 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);
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_;
private:
smx_mailbox_t inferior_;
@@
-47,4
+49,7
@@
private:
#endif
#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 */
#endif /* SIMGRID_S4U_MAILBOX_HPP */