X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe01bbe18c525f799866911a477cd0005475e881..29d145c3e90c4d7a9dd744dae93e330b10724392:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 7b8b4291b8..b5a2251eb2 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -343,6 +343,8 @@ public: /** If set to true, the actor will automatically restart when its host reboots */ Actor* set_auto_restart(bool autorestart = true); + /** Returns the number of reboots that this actor did. Before the first reboot, this function returns 0. */ + int get_restart_count(); /** Add a function to the list of "on_exit" functions for the current actor. The on_exit functions are the functions * executed when your actor is killed. You should use them to free the data used by your actor.