X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/922482ff141f9ce5878f39a58bef3c7f7e19bffa..af459dff2b5461c2dbc61e5b5cbdc302f92d2404:/src/simix/ActorImpl.hpp diff --git a/src/simix/ActorImpl.hpp b/src/simix/ActorImpl.hpp index ba966d1c38..0b4c9e6d46 100644 --- a/src/simix/ActorImpl.hpp +++ b/src/simix/ActorImpl.hpp @@ -25,11 +25,23 @@ class ProcessArg { public: std::string name; std::function code; - void *data = nullptr; - sg_host_t host = nullptr; + void* data = nullptr; + s4u::Host* host = nullptr; double kill_time = 0.0; std::shared_ptr> properties; bool auto_restart = false; + ProcessArg() = default; + explicit ProcessArg(std::string name, std::function code, void* data, s4u::Host* host, double kill_time, + std::shared_ptr> properties, bool auto_restart) + : name(name) + , code(std::move(code)) + , data(data) + , host(host) + , kill_time(kill_time) + , properties(properties) + , auto_restart(auto_restart) + { + } }; class ActorImpl : public simgrid::surf::PropertyHolder {