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] Make host->{on,off}() do the simcall directly
[simgrid.git]
/
src
/
s4u
/
s4u_host.cpp
diff --git
a/src/s4u/s4u_host.cpp
b/src/s4u/s4u_host.cpp
index
6f35dfb
..
f075483
100644
(file)
--- a/
src/s4u/s4u_host.cpp
+++ b/
src/s4u/s4u_host.cpp
@@
-53,10
+53,10
@@
const char* Host::name() {
}
void Host::turnOn() {
-
simcall_host_on(p_inferior
);
+
p_inferior->on(
);
}
void Host::turnOff() {
-
simcall_host_off(p_inferior
);
+
p_inferior->off(
);
}
bool Host::isOn() {
return sg_host_get_state(p_inferior);