X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ed37babb2fa9097abe82df299c0aa259ed84d5a..bfffef69e1b0554d13eec920f1a32f75b49ceac6:/teshsuite/xbt/signals/signals.cpp diff --git a/teshsuite/xbt/signals/signals.cpp b/teshsuite/xbt/signals/signals.cpp index 02b1cdf1c7..a0c1676d8e 100644 --- a/teshsuite/xbt/signals/signals.cpp +++ b/teshsuite/xbt/signals/signals.cpp @@ -11,29 +11,29 @@ static void worker() { simgrid::s4u::Host* other_host = simgrid::s4u::Host::by_name("Fafard"); unsigned int first = - simgrid::s4u::Host::on_state_change.connect([](simgrid::s4u::Host const&) { XBT_INFO("First callback"); }); + simgrid::s4u::Host::on_onoff.connect([](simgrid::s4u::Host const&) { XBT_INFO("First callback"); }); unsigned int second = - simgrid::s4u::Host::on_state_change.connect([](simgrid::s4u::Host const&) { XBT_INFO("Second callback"); }); + simgrid::s4u::Host::on_onoff.connect([](simgrid::s4u::Host const&) { XBT_INFO("Second callback"); }); unsigned int third = - simgrid::s4u::Host::on_state_change.connect([](simgrid::s4u::Host const&) { XBT_INFO("Third callback"); }); + simgrid::s4u::Host::on_onoff.connect([](simgrid::s4u::Host const&) { XBT_INFO("Third callback"); }); XBT_INFO("Turning off: Three callbacks should be triggered"); other_host->turn_off(); XBT_INFO("Disconnect the second callback"); - simgrid::s4u::Host::on_state_change.disconnect(second); + simgrid::s4u::Host::on_onoff.disconnect(second); XBT_INFO("Turning on: Two callbacks should be triggered"); other_host->turn_on(); XBT_INFO("Disconnect the first callback"); - simgrid::s4u::Host::on_state_change.disconnect(first); + simgrid::s4u::Host::on_onoff.disconnect(first); XBT_INFO("Turning off: One callback should be triggered"); other_host->turn_off(); XBT_INFO("Disconnect the third callback"); - simgrid::s4u::Host::on_state_change.disconnect(third); + simgrid::s4u::Host::on_onoff.disconnect(third); XBT_INFO("Turning on: No more callbacks"); other_host->turn_on(); }