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
Rename Resource::on_state_change to Resource::on_onoff for sake of clarity
[simgrid.git]
/
teshsuite
/
s4u
/
comm-fault-scenarios
/
comm-fault-scenarios.cpp
diff --git
a/teshsuite/s4u/comm-fault-scenarios/comm-fault-scenarios.cpp
b/teshsuite/s4u/comm-fault-scenarios/comm-fault-scenarios.cpp
index
3843601
..
1723741
100644
(file)
--- a/
teshsuite/s4u/comm-fault-scenarios/comm-fault-scenarios.cpp
+++ b/
teshsuite/s4u/comm-fault-scenarios/comm-fault-scenarios.cpp
@@
-413,7
+413,7
@@
int main(int argc, char* argv[])
{sg4::LinkInRoute{link}}, false);
zone->seal();
- sg4::Host::on_
state_change
_cb([mbox](sg4::Host const& host) {
+ sg4::Host::on_
onoff
_cb([mbox](sg4::Host const& host) {
XBT_DEBUG("Host %s is now %s", host.get_cname(), host.is_on() ? "ON " : "OFF");
if (not host.is_on()) {
mbox.eager->clear();
@@
-421,7
+421,7
@@
int main(int argc, char* argv[])
}
});
- sg4::Link::on_
state_change
_cb(
+ sg4::Link::on_
onoff
_cb(
[](sg4::Link const& lnk) { XBT_DEBUG("Link %s is now %s", lnk.get_cname(), lnk.is_on() ? "ON " : "OFF"); });
e.run_until(end_time);