Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'actor-yield' of github.com:Takishipp/simgrid into actor-yield
[simgrid.git] / include / simgrid / s4u / Actor.hpp
index e9cdd87..92fc485 100644 (file)
@@ -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();