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
Fix a doc error about actors (Tutorial_algorithms)
[simgrid.git]
/
src
/
kernel
/
activity
/
SleepImpl.hpp
diff --git
a/src/kernel/activity/SleepImpl.hpp
b/src/kernel/activity/SleepImpl.hpp
index
d4f83e0
..
ec5c9e2
100644
(file)
--- a/
src/kernel/activity/SleepImpl.hpp
+++ b/
src/kernel/activity/SleepImpl.hpp
@@
-13,14
+13,16
@@
namespace simgrid {
namespace kernel {
namespace activity {
namespace kernel {
namespace activity {
-class XBT_PUBLIC SleepImpl : public ActivityImpl {
+class XBT_PUBLIC SleepImpl : public ActivityImpl_T<SleepImpl> {
+ sg_host_t host_ = nullptr;
+ double duration_ = 0;
+
public:
public:
- explicit SleepImpl(const std::string& name, s4u::Host* host) : ActivityImpl(name), host_(host) {}
+ SleepImpl& set_host(s4u::Host* host);
+ SleepImpl& set_duration(double duration);
void post() override;
void finish() override;
void post() override;
void finish() override;
- SleepImpl* start(double duration);
-
- sg_host_t host_ = nullptr;
+ SleepImpl* start();
};
} // namespace activity
} // namespace kernel
};
} // namespace activity
} // namespace kernel