- std::string hostname;
- if (pid == "-0") { //activity is launched directly by Maestro, use the host as container
- if (const auto e = dynamic_cast<const s4u::Exec*>(&a))
- Container::by_name(e->get_host()->get_name())->get_state("HOST_STATE")->pop_event();
- if (const auto c = dynamic_cast<const s4u::Comm*>(&a)) {
- Container::by_name(c->get_source()->get_name())->get_state("HOST_STATE")->pop_event();
- Container::by_name(c->get_destination()->get_name())->get_state("HOST_STATE")->pop_event();
- }
- } else
+ if (pid == "-0") //Exec is launched directly by Maestro, use the host as container
+ Container::by_name(e.get_host()->get_name())->get_state("HOST_STATE")->pop_event();
+ else