A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[simix] Wrap (xbt_main_func_t, argc, argv) in a std::function everywhere
[simgrid.git]
/
src
/
simix
/
SynchroSleep.hpp
diff --git
a/src/simix/SynchroSleep.hpp
b/src/simix/SynchroSleep.hpp
index
8e4b9a1
..
9f024ca
100644
(file)
--- a/
src/simix/SynchroSleep.hpp
+++ b/
src/simix/SynchroSleep.hpp
@@
-6,6
+6,7
@@
#ifndef _SIMIX_SYNCHRO_SLEEP_HPP
#define _SIMIX_SYNCHRO_SLEEP_HPP
#ifndef _SIMIX_SYNCHRO_SLEEP_HPP
#define _SIMIX_SYNCHRO_SLEEP_HPP
+#include "surf/surf.h"
#include "src/simix/Synchro.h"
namespace simgrid {
#include "src/simix/Synchro.h"
namespace simgrid {
@@
-13,6
+14,10
@@
namespace simix {
XBT_PUBLIC_CLASS Sleep : public Synchro {
public:
XBT_PUBLIC_CLASS Sleep : public Synchro {
public:
+ void suspend() override;
+ void resume() override;
+ void post() override;
+
sg_host_t host; /* The host that is sleeping */
surf_action_t surf_sleep; /* The Surf sleeping action encapsulated */
};
sg_host_t host; /* The host that is sleeping */
surf_action_t surf_sleep; /* The Surf sleeping action encapsulated */
};