X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22a6d90e2d923507bc5b418147c8e3d5c9a8f9e9..60b3f1d683ffdc0ec72d8ec1c3bbc57e53b44596:/src/kernel/actor/ActorImpl.hpp diff --git a/src/kernel/actor/ActorImpl.hpp b/src/kernel/actor/ActorImpl.hpp index 3394c36c16..caef390209 100644 --- a/src/kernel/actor/ActorImpl.hpp +++ b/src/kernel/actor/ActorImpl.hpp @@ -65,7 +65,9 @@ public: activity::ActivityImplPtr waiting_synchro = nullptr; /* the current blocking synchro if any */ std::list comms; /* the current non-blocking communication synchros */ s_smx_simcall simcall; - std::vector> on_exit; /* list of functions executed when the process dies */ + /* list of functions executed when the process dies */ + const std::shared_ptr>> on_exit = + std::make_shared>>(); std::function code; simix::Timer* kill_timer = nullptr; @@ -136,7 +138,8 @@ public: std::shared_ptr> properties = nullptr; bool auto_restart = false; bool daemon_ = false; - std::vector> on_exit; /* list of functions executed when the process dies */ + /* list of functions executed when the process dies */ + const std::shared_ptr>> on_exit; ProcessArg() = default;