X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a028ba77024fae8cd0155e681f2320274b3c3514..4b3f034babb47fcaf8e1e58dbbc6d76968f6f478:/include/simgrid/s4u/actor.hpp diff --git a/include/simgrid/s4u/actor.hpp b/include/simgrid/s4u/actor.hpp index 7044347b65..e96a862a4b 100644 --- a/include/simgrid/s4u/actor.hpp +++ b/include/simgrid/s4u/actor.hpp @@ -6,6 +6,7 @@ #ifndef SIMGRID_S4U_ACTOR_HPP #define SIMGRID_S4U_ACTOR_HPP +#include #include #include #include @@ -40,7 +41,7 @@ namespace s4u { * */ XBT_PUBLIC_CLASS Actor { - Actor(smx_process_t smx_proc); + explicit Actor(smx_process_t smx_proc); public: Actor(const char* name, s4u::Host *host, double killTime, std::function code); Actor(const char* name, s4u::Host *host, std::function code) @@ -74,6 +75,8 @@ public: */ void kill(); + static void kill(int pid); + // Static methods on all actors: /** Ask kindly to all actors to die. Only the issuer will survive. */