Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enhance the documentation of Actor::daemonize()
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 28 Feb 2022 08:54:11 +0000 (09:54 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 28 Feb 2022 08:54:49 +0000 (09:54 +0100)
Maybe the next user won't not fall in the same trap as I did

include/simgrid/s4u/Actor.hpp

index 60f7515..e3a606e 100644 (file)
@@ -307,7 +307,11 @@ public:
                          std::vector<std::string> args);
 
   // ***** Methods *****
-  /** This actor will be automatically terminated when the last non-daemon actor finishes **/
+  /** This actor will be automatically terminated when the last non-daemon actor finishes.
+   *
+   * Daemons are killed as soon as the last regular actor disappears. If another regular actor
+   * gets restarted later on by a timer or when its host reboots, the daemons do not get restarted.
+   **/
   Actor* daemonize();
 
   /** Returns whether or not this actor has been daemonized or not **/