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
docs: s/Virtual Platform/Simulated Platform/
[simgrid.git]
/
src
/
s4u
/
s4u_Host.cpp
diff --git
a/src/s4u/s4u_Host.cpp
b/src/s4u/s4u_Host.cpp
index
8e5edcb
..
27d5e96
100644
(file)
--- a/
src/s4u/s4u_Host.cpp
+++ b/
src/s4u/s4u_Host.cpp
@@
-86,8
+86,8
@@
void Host::turn_on()
{
if (is_off()) {
simgrid::simix::simcall([this] {
- this->pimpl_->turn_on();
this->pimpl_cpu->turn_on();
+ this->pimpl_->turn_on();
on_state_change(*this);
});
}
@@
-284,6
+284,11
@@
std::unordered_map<std::string, Storage*> const& Host::get_mounted_storages()
return *mounts_;
}
+ExecPtr Host::exec_async(double flops)
+{
+ return this_actor::exec_init(flops)->set_host(this);
+}
+
void Host::execute(double flops)
{
execute(flops, 1.0 /* priority */);