X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/09a7e9026201418519bf9e69a312bc98f9532036..9ceefed14c83a0f6ea5f78e3acafd53181dc4fa1:/src/instr/instr_platform.cpp diff --git a/src/instr/instr_platform.cpp b/src/instr/instr_platform.cpp index 8853454c11..801cd44528 100644 --- a/src/instr/instr_platform.cpp +++ b/src/instr/instr_platform.cpp @@ -467,7 +467,7 @@ void define_callbacks() s4u::Exec::on_start.connect([](s4u::Exec const&) { Container::by_name(instr_pid(*s4u::Actor::self()))->get_state("ACTOR_STATE")->push_event("execute"); }); - s4u::Exec::on_completion.connect([](s4u::Exec const&) { + s4u::Activity::on_completion.connect([](s4u::Activity&) { Container::by_name(instr_pid(*s4u::Actor::self()))->get_state("ACTOR_STATE")->pop_event(); }); s4u::Comm::on_send.connect([](s4u::Comm const&) { @@ -476,9 +476,6 @@ void define_callbacks() s4u::Comm::on_recv.connect([](s4u::Comm const&) { Container::by_name(instr_pid(*s4u::Actor::self()))->get_state("ACTOR_STATE")->push_event("receive"); }); - s4u::Comm::on_completion.connect([](s4u::Comm const&) { - Container::by_name(instr_pid(*s4u::Actor::self()))->get_state("ACTOR_STATE")->pop_event(); - }); s4u::Actor::on_host_change.connect(on_actor_host_change); } @@ -488,7 +485,7 @@ void define_callbacks() ->get_state("MPI_STATE") ->push_event("computing", new CpuTIData("compute", exec.get_cost())); }); - s4u::Exec::on_completion.connect([](s4u::Exec const&) { + s4u::Activity::on_completion.connect([](s4u::Activity&) { Container::by_name(std::string("rank-") + std::to_string(s4u::Actor::self()->get_pid())) ->get_state("MPI_STATE") ->pop_event();