Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of github.com:simgrid/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 12 Aug 2018 17:32:33 +0000 (19:32 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 12 Aug 2018 17:32:33 +0000 (19:32 +0200)
1  2 
include/simgrid/s4u/Mailbox.hpp

@@@ -102,10 -102,8 +102,10 @@@ namespace s4u 
   * @section s4u_mb_api The API
   */
  class XBT_PUBLIC Mailbox {
 +#ifndef DOXYGEN
    friend Comm;
    friend simgrid::kernel::activity::MailboxImpl;
 +#endif
  
    simgrid::kernel::activity::MailboxImpl* pimpl_;
  
@@@ -133,6 -131,9 +133,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();