Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
suggested solution tu use simix through a function
[simgrid.git] / include / simgrid / s4u / Actor.hpp
index eef1611..b4e58c9 100644 (file)
@@ -218,6 +218,8 @@ public:
   /** Resume a suspended process by resuming the task on which it was waiting for the completion. */
   void resume();
 
+  void yield();
+
   /** Returns true if the process is suspended. */
   int isSuspended();
 
@@ -349,6 +351,8 @@ template <class Rep, class Period> inline void sleep_for(std::chrono::duration<R
   /** @brief Resume the actor. */
   XBT_PUBLIC(void) resume();
 
+  XBT_PUBLIC(void) yield();
+
   XBT_PUBLIC(bool) isSuspended();
 
   /** @brief kill the actor. */