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
This is a CommImpl*.
[simgrid.git]
/
src
/
kernel
/
activity
/
SleepImpl.hpp
diff --git
a/src/kernel/activity/SleepImpl.hpp
b/src/kernel/activity/SleepImpl.hpp
index
76fa036
..
5ab94f8
100644
(file)
--- a/
src/kernel/activity/SleepImpl.hpp
+++ b/
src/kernel/activity/SleepImpl.hpp
@@
-14,13
+14,15
@@
namespace kernel {
namespace activity {
class XBT_PUBLIC SleepImpl : public ActivityImpl {
namespace activity {
class XBT_PUBLIC SleepImpl : public ActivityImpl {
+ ~SleepImpl() override;
+
public:
public:
- void suspend() override;
- void resume() override;
+ explicit SleepImpl(std::string name, s4u::Host* host) : ActivityImpl(std::move(name)), host_(host) {}
void post() override;
void post() override;
+ void finish() override;
+ SleepImpl* start(double duration);
- sg_host_t host = nullptr;
- resource::Action* surf_action_ = nullptr;
+ sg_host_t host_ = nullptr;
};
}
}
};
}
}