X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/60b3f1d683ffdc0ec72d8ec1c3bbc57e53b44596..4ca7055f4a76fa00332cfa1b80f0759cc1c0dd12:/src/kernel/actor/ActorImpl.hpp diff --git a/src/kernel/actor/ActorImpl.hpp b/src/kernel/actor/ActorImpl.hpp index caef390209..98336cfb4d 100644 --- a/src/kernel/actor/ActorImpl.hpp +++ b/src/kernel/actor/ActorImpl.hpp @@ -59,14 +59,13 @@ public: std::exception_ptr exception_; bool finished_ = false; - bool blocked_ = false; /* FIXME this field is never set to true. Either use it or remove it. */ bool suspended_ = false; activity::ActivityImplPtr waiting_synchro = nullptr; /* the current blocking synchro if any */ 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; @@ -99,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_; }