Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add method to check if a mailbox has a message ready to be consumed without having...
[simgrid.git] / include / simgrid / s4u / Mailbox.hpp
index 8b4267a..6dd0394 100644 (file)
@@ -131,6 +131,9 @@ public:
   /** Check if there is a communication going on in a mailbox. */
   bool listen();
 
+  /** Check if there is a communication ready to be consumed from a mailbox. */
+  bool ready();
+
   /** Gets the first element in the queue (without dequeuing it), or nullptr if none is there */
   smx_activity_t front();