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
HostImpl::turn_off(): SIMIX_process_self is maestro there, save real process before...
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
d9a6e3e
..
d2f6a48
100644
(file)
--- a/
src/surf/HostImpl.cpp
+++ b/
src/surf/HostImpl.cpp
@@
-119,12
+119,12
@@
void HostImpl::turn_on()
}
/** Kill all actors hosted here */
}
/** Kill all actors hosted here */
-void HostImpl::turn_off()
+void HostImpl::turn_off(
kernel::actor::ActorImpl* issuer
)
{
for (auto& actor : actor_list_) {
XBT_DEBUG("Killing Actor %s@%s on behalf of %s which turned off that host.", actor.get_cname(),
{
for (auto& actor : actor_list_) {
XBT_DEBUG("Killing Actor %s@%s on behalf of %s which turned off that host.", actor.get_cname(),
- actor.get_host()->get_cname(),
SIMIX_process_self()
->get_cname());
-
SIMIX_process_self()
->kill(&actor);
+ actor.get_host()->get_cname(),
issuer
->get_cname());
+
issuer
->kill(&actor);
}
// When a host is turned off, we want to keep only the actors that should restart for when it will boot again.
// Then get rid of the others.
}
// When a host is turned off, we want to keep only the actors that should restart for when it will boot again.
// Then get rid of the others.