A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New callbacks: simgrid::s4u::onSimulationEnd (right after the main simulation loop)
[simgrid.git]
/
include
/
simgrid
/
s4u
/
engine.hpp
diff --git
a/include/simgrid/s4u/engine.hpp
b/include/simgrid/s4u/engine.hpp
index
25fe6e4
..
c8558b8
100644
(file)
--- a/
include/simgrid/s4u/engine.hpp
+++ b/
include/simgrid/s4u/engine.hpp
@@
-105,10
+105,13
@@
private:
static s4u::Engine *instance_;
};
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;
* 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::s4u
#endif /* SIMGRID_S4U_ENGINE_HPP */