X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/46d67687a9be9ee36768c2c8309184e27721aa52..c7c5def2870e604025be03b866967c0c5e293afe:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index b57d015e0c..670f5022c9 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -162,6 +163,9 @@ public: /** Retrieve a reference to myself */ static ActorPtr self(); + /** Signal to others that a new actor has been created **/ + static simgrid::xbt::signal onCreation; + /** Create an actor using a function * * If the actor is restarted, the actor has a fresh copy of the function. @@ -275,9 +279,6 @@ public: const char* getProperty(const char* key); void setProperty(const char* key, const char* value); Actor* restart(); - - ExecPtr exec_init(double flops_amounts); - ExecPtr exec_async(double flops_amounts); }; /** @ingroup s4u_api @@ -319,6 +320,9 @@ XBT_PUBLIC(void) parallel_execute(int host_nb, sg_host_t* host_list, double* flo XBT_PUBLIC(void) parallel_execute(int host_nb, sg_host_t* host_list, double* flops_amount, double* bytes_amount, double timeout); +XBT_PUBLIC(ExecPtr) exec_init(double flops_amounts); +XBT_PUBLIC(ExecPtr) exec_async(double flops_amounts); + /** Block the actor until it gets a message from the given mailbox. * * See \ref Comm for the full communication API (including non blocking communications).