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
[S4U] Add onCreation signal to the actor API
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
8f332c8
..
670f502
100644
(file)
--- a/
include/simgrid/s4u/Actor.hpp
+++ b/
include/simgrid/s4u/Actor.hpp
@@
-19,6
+19,7
@@
#include <xbt/Extendable.hpp>
#include <xbt/functional.hpp>
#include <xbt/string.hpp>
#include <xbt/Extendable.hpp>
#include <xbt/functional.hpp>
#include <xbt/string.hpp>
+#include <xbt/signal.hpp>
#include <simgrid/chrono.hpp>
#include <simgrid/s4u/forward.hpp>
#include <simgrid/chrono.hpp>
#include <simgrid/s4u/forward.hpp>
@@
-162,6
+163,9
@@
public:
/** Retrieve a reference to myself */
static ActorPtr self();
/** Retrieve a reference to myself */
static ActorPtr self();
+ /** Signal to others that a new actor has been created **/
+ static simgrid::xbt::signal<void(simgrid::s4u::ActorPtr)> onCreation;
+
/** Create an actor using a function
*
* If the actor is restarted, the actor has a fresh copy of the function.
/** Create an actor using a function
*
* If the actor is restarted, the actor has a fresh copy of the function.