X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/23529d55ccbfd0a851fdc86708320811ddda8ec4..bc691c290cd062a5c929b94d32b92f18ef5d235b:/process.h?ds=sidebyside diff --git a/process.h b/process.h index b124593..fb1fe3f 100644 --- a/process.h +++ b/process.h @@ -99,8 +99,10 @@ private: // Returns true if there remains neighbors to listen for bool may_receive() { return ctrl_close_pending || data_close_pending; } - // Receive procedure: wait (or not) for a message to come - void receive(bool wait); + // Receive procedure + // Parameter "timeout" may be 0 for non-blocking operation, -1 for + // infinite waiting, or any positive timeout. + void receive(double timeout); // Finalize sends a "close" message to each neighbor and wait for // all of them to answer.