X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5d67901dba3dfd8e75f708c329b8144287490077..d7bc120608a7dff0e936300bc7fc0367ee26b16d:/src/simix/SynchroExec.hpp diff --git a/src/simix/SynchroExec.hpp b/src/simix/SynchroExec.hpp index 27b62fdb41..b771a39123 100644 --- a/src/simix/SynchroExec.hpp +++ b/src/simix/SynchroExec.hpp @@ -6,15 +6,23 @@ #ifndef _SIMIX_SYNCHRO_EXEC_HPP #define _SIMIX_SYNCHRO_EXEC_HPP +#include "surf/surf.h" #include "src/simix/Synchro.h" namespace simgrid { namespace simix { XBT_PUBLIC_CLASS Exec : public Synchro { + ~Exec() override; public: - sg_host_t host; /* The host where the execution takes place */ - surf_action_t surf_exec; /* The Surf execution action encapsulated */ + 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. 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