X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fada53aa725e58a781895225b190f44961cb04e2..2807fde4fd1f59c230d69a934634c5dfb77905f2:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index e9cdd87e85..92fc4852ce 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -217,7 +217,9 @@ public: /** Resume a suspended actor by resuming the task on which it was waiting for the completion. */ void resume(); - + + void yield(); + /** Returns true if the actor is suspended. */ int isSuspended(); @@ -347,6 +349,9 @@ XBT_PUBLIC(Host*) getHost(); /** @brief Suspend the actor. */ XBT_PUBLIC(void) suspend(); +/** @brief yield the actor. */ +XBT_PUBLIC(void) yield(); + /** @brief Resume the actor. */ XBT_PUBLIC(void) resume();