X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/334e868fd56cf359ef71557b7eba026687fbef73..2ca35a707044d033c33cb4f016e6ffddfded0d05:/src/simix/SynchroExec.hpp diff --git a/src/simix/SynchroExec.hpp b/src/simix/SynchroExec.hpp index c81b6b7b0f..b9e31aa407 100644 --- a/src/simix/SynchroExec.hpp +++ b/src/simix/SynchroExec.hpp @@ -13,12 +13,16 @@ namespace simgrid { namespace simix { XBT_PUBLIC_CLASS Exec : public Synchro { + ~Exec() override; public: - void suspend(); - void resume(); + Exec(const char*name, sg_host_t host); + void suspend() override; + void resume() override; + void post() override; + double remains(); - sg_host_t host; /* The host where the execution takes place */ - surf_action_t surf_exec; /* The Surf execution action encapsulated */ + sg_host_t host = nullptr; /* The host where the execution takes place. If nullptr, then this is a parallel exec (and only surf knows the hosts) */ + surf_action_t surf_exec = nullptr; /* The Surf execution action encapsulated */ }; }} // namespace simgrid::simix