#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>
*
*/
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)
*/
void kill();
+ static void kill(int pid);
+
// Static methods on all actors:
/** Ask kindly to all actors to die. Only the issuer will survive. */