From: Martin Quinson Date: Sat, 7 Jul 2018 22:37:23 +0000 (+0200) Subject: improve a comment X-Git-Tag: v3_21~538 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e15ca5d1e67d57089929ff45a6d066d9440e38dd?hp=2311587e43b425e0fc6acf2d3de39d6a38ef8a56 improve a comment --- diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index 1b7b19517b..8e1cfdb4f0 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -312,8 +312,7 @@ void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t synchro, do /* otherwise set up a waiting timeout on the right side */ if (synchro->state_ != SIMIX_WAITING && synchro->state_ != SIMIX_RUNNING) { SIMIX_comm_finish(synchro); - } else { /* we need a surf sleep action even when there is no timeout, otherwise surf won't tell us when the host - fails */ + } else { /* we need a sleep action (even when there is no timeout) to be notified of host failures */ simgrid::kernel::resource::Action* sleep = simcall->issuer->host_->pimpl_cpu->sleep(timeout); sleep->set_data(synchro.get());