X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0918d2c54c0f242790ec8db47e2c0892e1fa703..f9521627fe1cef73bb8eccd5b11735dcbd906dbd:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 3b847f249f..2d03fe5cec 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -162,9 +162,15 @@ public: static xbt::signal on_migration_start; /** Signal to others that an actor is has been migrated to another host **/ static xbt::signal on_migration_end; - /** Signal indicating that an actor is about to disappear. - * This signal is fired for any dying actor, which is mostly useful when designing plugins and extensions. If you - * want to register to the termination of a given actor, use this_actor::on_exit() instead.*/ + /** Signal indicating that an actor terminated its code. + * The actor may continue to exist if it is still referenced in the simulation, but it's not active anymore. + * If you want to free extra data when the actor's destructor is called, use Actor::on_destruction. + * If you want to register to the termination of a given actor, use this_actor::on_exit() instead.*/ + static xbt::signal on_termination; + /** Signal indicating that an actor is about to disappear (its destructor was called). + * This signal is fired for any destructed actor, which is mostly useful when designing plugins and extensions. + * If you want to react to the end of the actor's code, use Actor::on_termination instead. + * If you want to register to the termination of a given actor, use this_actor::on_exit() instead.*/ static xbt::signal on_destruction; /** Create an actor from a std::function