X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5d67901dba3dfd8e75f708c329b8144287490077..a5945452ef5b1114fd7c2fab0e865d776775c34d:/src/simix/SynchroSleep.hpp diff --git a/src/simix/SynchroSleep.hpp b/src/simix/SynchroSleep.hpp index 8e4b9a156f..46a25aa32b 100644 --- a/src/simix/SynchroSleep.hpp +++ b/src/simix/SynchroSleep.hpp @@ -6,6 +6,7 @@ #ifndef _SIMIX_SYNCHRO_SLEEP_HPP #define _SIMIX_SYNCHRO_SLEEP_HPP +#include "surf/surf.h" #include "src/simix/Synchro.h" namespace simgrid { @@ -13,8 +14,12 @@ namespace simix { XBT_PUBLIC_CLASS Sleep : public Synchro { public: - sg_host_t host; /* The host that is sleeping */ - surf_action_t surf_sleep; /* The Surf sleeping action encapsulated */ + void suspend() override; + void resume() override; + void post() override; + + sg_host_t host = nullptr; /* The host that is sleeping */ + surf_action_t surf_sleep = nullptr; /* The Surf sleeping action encapsulated */ }; }} // namespace simgrid::simix