S4U
- New callbacks:
- simgrid::s4u::onPlatformCreated: right before the simulation starts
+ - simgrid::s4u::onSimulationEnd: right after the main simulation loop
-- target_date=March 20 2017 -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
static s4u::Engine *instance_;
};
-/* Callback called when the platform is created (ie, the xml file parsed),
+/** Callback called when the platform is created (ie, the xml file parsed),
* right before the actual simulation starts.
*/
extern XBT_PRIVATE xbt::signal<void(void)> onPlatformCreated;
+
+/** Callback called when the main simulation loop ends, just before MSG_run (or similar) ends */
+extern XBT_PRIVATE xbt::signal<void(void)> onSimulationEnd;
}} // namespace simgrid::s4u
#endif /* SIMGRID_S4U_ENGINE_HPP */
namespace simgrid {
namespace s4u {
xbt::signal<void(void)> onPlatformCreated;
+xbt::signal<void(void)> onSimulationEnd;
Engine *Engine::instance_ = nullptr; /* That singleton is awful, but I don't see no other solution right now. */