X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e70d54a095cd7779a53c7a164f775f7a37b29e5..3203afd846219ef8b41cadda945ea0a98103c46f:/src/kernel/actor/ActorImpl.cpp diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index 4fb6bf5415..c2e2b489c2 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -10,7 +10,6 @@ #include "src/internal_config.h" #include "src/kernel/EngineImpl.hpp" -#include "src/surf/surf_interface.hpp" #if HAVE_SMPI #include "src/smpi/include/private.hpp" #endif @@ -128,12 +127,6 @@ void ActorImpl::cleanup_from_kernel() if (not kernel_destroy_list_hook.is_linked()) engine->add_actor_to_destroy_list(*this); - if (has_to_auto_restart() && not get_host()->is_on()) { - XBT_DEBUG("Insert host %s to watched_hosts because it's off and %s needs to restart", get_host()->get_cname(), - get_cname()); - watched_hosts().insert(get_host()->get_name()); - } - undaemonize(); s4u::Actor::on_termination(*get_ciface()); @@ -190,7 +183,7 @@ void ActorImpl::exit() activity::ActivityImplPtr activity = waiting_synchro_; activity->cancel(); activity->set_state(activity::State::FAILED); - activity->post(); + activity->finish(); activities_.erase(waiting_synchro_); waiting_synchro_ = nullptr;