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
snake_case the signals in s4u::Link (no way to make a deprecation warning)
[simgrid.git]
/
src
/
s4u
/
s4u_Actor.cpp
diff --git
a/src/s4u/s4u_Actor.cpp
b/src/s4u/s4u_Actor.cpp
index
b342ac4
..
e67eaa1
100644
(file)
--- a/
src/s4u/s4u_Actor.cpp
+++ b/
src/s4u/s4u_Actor.cpp
@@
-570,6
+570,11
@@
void sg_actor_kill(sg_actor_t actor)
actor->kill();
}
actor->kill();
}
+void sg_actor_kill_all()
+{
+ simgrid::s4u::Actor::kill_all();
+}
+
/** \ingroup m_actor_management
* \brief Set the kill time of an actor.
*
/** \ingroup m_actor_management
* \brief Set the kill time of an actor.
*
@@
-580,3
+585,9
@@
void sg_actor_set_kill_time(sg_actor_t actor, double kill_time)
{
actor->set_kill_time(kill_time);
}
{
actor->set_kill_time(kill_time);
}
+
+/** Yield the current actor; let the other actors execute first */
+void sg_actor_yield()
+{
+ simgrid::s4u::this_actor::yield();
+}