X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/14d0f31c779d8028a6c75e7c837c5afd84eb53b0..4ca7055f4a76fa00332cfa1b80f0759cc1c0dd12:/src/kernel/actor/ActorImpl.hpp diff --git a/src/kernel/actor/ActorImpl.hpp b/src/kernel/actor/ActorImpl.hpp index bbc6a5a9f5..98336cfb4d 100644 --- a/src/kernel/actor/ActorImpl.hpp +++ b/src/kernel/actor/ActorImpl.hpp @@ -65,7 +65,7 @@ public: std::list comms; /* the current non-blocking communication synchros */ s_smx_simcall simcall; /* list of functions executed when the process dies */ - const std::shared_ptr>> on_exit = + std::shared_ptr>> on_exit = std::make_shared>>(); std::function code; @@ -98,6 +98,9 @@ public: /* S4U/implem interfaces */ private: s4u::Actor piface_; // Our interface is part of ourselves + + void undaemonize(); + public: s4u::ActorPtr iface() { return s4u::ActorPtr(&piface_); } s4u::Actor* ciface() { return &piface_; }