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
suggested solution tu use simix through a function
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
eef1611
..
b4e58c9
100644
(file)
--- a/
include/simgrid/s4u/Actor.hpp
+++ b/
include/simgrid/s4u/Actor.hpp
@@
-218,6
+218,8
@@
public:
/** Resume a suspended process by resuming the task on which it was waiting for the completion. */
void resume();
/** 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();
/** 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();
/** @brief Resume the actor. */
XBT_PUBLIC(void) resume();
+ XBT_PUBLIC(void) yield();
+
XBT_PUBLIC(bool) isSuspended();
/** @brief kill the actor. */
XBT_PUBLIC(bool) isSuspended();
/** @brief kill the actor. */