Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tiny doc improvements
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 13 Jun 2019 21:53:43 +0000 (23:53 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 14 Jun 2019 13:19:09 +0000 (15:19 +0200)
include/simgrid/s4u/Actor.hpp
src/s4u/s4u_Actor.cpp

index ebbc9c6..cee9499 100644 (file)
@@ -311,10 +311,10 @@ namespace this_actor {
 
 XBT_PUBLIC bool is_maestro();
 
-/** Block the current actor sleeping for that amount of seconds (may throw hostFailure) */
+/** Block the current actor sleeping for that amount of seconds */
 XBT_PUBLIC void sleep_for(double duration);
-/** Block the current actor sleeping until the specified timestamp (may throw hostFailure) */
-XBT_PUBLIC void sleep_until(double timeout);
+/** Block the current actor sleeping until the specified timestamp */
+XBT_PUBLIC void sleep_until(double wakeup_time);
 
 template <class Rep, class Period> inline void sleep_for(std::chrono::duration<Rep, Period> duration)
 {
index fe048a5..7a66c4b 100644 (file)
@@ -289,11 +289,11 @@ void yield()
   simix::simcall([] { /* do nothing*/ });
 }
 
-XBT_PUBLIC void sleep_until(double timeout)
+XBT_PUBLIC void sleep_until(double wakeup_time)
 {
   double now = SIMIX_get_clock();
-  if (timeout > now)
-    sleep_for(timeout - now);
+  if (wakeup_time > now)
+    sleep_for(wakeup_time - now);
 }
 
 void execute(double flops)