X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94e9dc93cadf4130878831fc74e5f17d035a3600..2748fc363dd4fe709089d1ec51c38db3fe2ca26a:/include/simgrid/s4u/Mailbox.hpp diff --git a/include/simgrid/s4u/Mailbox.hpp b/include/simgrid/s4u/Mailbox.hpp index 9d52198b07..bd0a479215 100644 --- a/include/simgrid/s4u/Mailbox.hpp +++ b/include/simgrid/s4u/Mailbox.hpp @@ -132,6 +132,9 @@ public: /** Returns whether the mailbox contains queued communications */ bool empty(); + /** Check if there is a communication going on in a mailbox. */ + bool listen(); + /** Gets the first element in the queue (without dequeuing it), or nullptr if none is there */ smx_activity_t front();