X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1538c08e54da45af6896ea26f5d8d2f854fd944d..725820ce0022f44c797da64ff6d6f7e39be476a7:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 2be0ba3c31..64fd9bcf28 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -387,8 +387,9 @@ namespace this_actor { XBT_PUBLIC bool is_maestro(); -/** Block the actor sleeping for that amount of seconds (may throws hostFailure) */ +/** Block the actor sleeping for that amount of seconds (may throw hostFailure) */ XBT_PUBLIC void sleep_for(double duration); +/** Block the actor sleeping until the specified timestamp (may throw hostFailure) */ XBT_PUBLIC void sleep_until(double timeout); template inline void sleep_for(std::chrono::duration duration) @@ -499,13 +500,13 @@ XBT_PUBLIC const char* get_cname(); /** @brief Returns the name of the host on which the actor is running. */ XBT_PUBLIC Host* get_host(); -/** @brief Suspend the actor. */ +/** @brief Suspend the actor, that is blocked until resume()ed by another actor. */ XBT_PUBLIC void suspend(); /** @brief Yield the actor. */ XBT_PUBLIC void yield(); -/** @brief Resume the actor. */ +/** @brief Resume the actor, that was suspend()ed previously. */ XBT_PUBLIC void resume(); XBT_PUBLIC bool is_suspended();