for (auto const& handler : handlers_)
handler(args...);
}
- void disconnect_all_slots()
- {
- handlers_.clear();
- }
+ void disconnectSlots() { handlers_.clear(); }
+ int getSlotsAmount() { return handlers_.size(); }
};
}
/** Module management function: frees all internal data structures */
void sg_platf_exit() {
- simgrid::surf::on_cluster.disconnect_all_slots();
- simgrid::s4u::onPlatformCreated.disconnect_all_slots();
+ simgrid::surf::on_cluster.disconnectSlots();
+ simgrid::s4u::onPlatformCreated.disconnectSlots();
/* make sure that we will reinit the models while loading the platf once reinited */
surf_parse_models_setup_already_called = 0;