Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New callbacks: simgrid::s4u::onSimulationEnd (right after the main simulation loop)
[simgrid.git] / include / simgrid / s4u / engine.hpp
index 25fe6e4..c8558b8 100644 (file)
@@ -105,10 +105,13 @@ private:
   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 */