X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e9f2171250125a29ef5cedc0fd69328cb819f91..a47e722190af3bc98a0d5bd16807cb3939f6e4af:/src/s4u/s4u_Comm.cpp diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index a5d5e5f501..14741370c9 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -132,7 +132,7 @@ Activity* Comm::start() /** @brief Block the calling actor until the communication is finished */ Activity* Comm::wait() { - return this->wait(-1); + return this->wait_for(-1); } /** @brief Block the calling actor until the communication is finished, or until timeout @@ -141,7 +141,7 @@ Activity* Comm::wait() * * @param timeout the amount of seconds to wait for the comm termination. * Negative values denote infinite wait times. 0 as a timeout returns immediately. */ -Activity* Comm::wait(double timeout) +Activity* Comm::wait_for(double timeout) { switch (state_) { case State::FINISHED: