X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c772bd3ca436f84d672d120e94351e2acf9e327c..8ee70b668c07f312f934575c35d8905dc27775cd:/src/gras/Msg/msg.c diff --git a/src/gras/Msg/msg.c b/src/gras/Msg/msg.c index c3d3f50927..1b48e0cb48 100644 --- a/src/gras/Msg/msg.c +++ b/src/gras/Msg/msg.c @@ -459,7 +459,8 @@ gras_msg_handleall(double period) { do { now=gras_os_time(); TRY{ - gras_msg_handle(period - now + begin); + if (period - now + begin > 0) + gras_msg_handle(period - now + begin); } CATCH(e) { if (e.category != timeout_error) RETHROW0("Error while waiting for messages: %s"); @@ -467,6 +468,7 @@ gras_msg_handleall(double period) { } } while (now - begin < period); } + /** @brief Handle an incomming message or timer (or wait up to \a timeOut seconds) * * @param timeOut: How long to wait for incoming messages (in seconds)