A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into actor-yield
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
e9cdd87
..
92fc485
100644
(file)
--- 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();
/** 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();
/** 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 Suspend the actor. */
XBT_PUBLIC(void) suspend();
+/** @brief yield the actor. */
+XBT_PUBLIC(void) yield();
+
/** @brief Resume the actor. */
XBT_PUBLIC(void) resume();
/** @brief Resume the actor. */
XBT_PUBLIC(void) resume();