From e15ca5d1e67d57089929ff45a6d066d9440e38dd Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 8 Jul 2018 00:37:23 +0200 Subject: [PATCH] improve a comment --- src/simix/smx_network.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); -- 2.20.1