X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f12caebeefc7985a0586836248238e475258079..6a66ef7c8b80c9f76525b67c64d847e3803ee517:/src/simix/SynchroExec.hpp diff --git a/src/simix/SynchroExec.hpp b/src/simix/SynchroExec.hpp index 20d26f818f..e52d59d227 100644 --- a/src/simix/SynchroExec.hpp +++ b/src/simix/SynchroExec.hpp @@ -13,15 +13,16 @@ namespace simgrid { namespace simix { XBT_PUBLIC_CLASS Exec : public Synchro { - ~Exec(); + ~Exec() override; public: + 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 NULL, 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