Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Lowercase variable
[simgrid.git] / include / simgrid / s4u / actor.hpp
index 7044347..e96a862 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef SIMGRID_S4U_ACTOR_HPP
 #define SIMGRID_S4U_ACTOR_HPP
 
+#include <stdexcept>
 #include <xbt/base.h>
 #include <simgrid/simix.h>
 #include <simgrid/s4u/forward.hpp>
@@ -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<void()> code);
   Actor(const char* name, s4u::Host *host, std::function<void()> 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. */