X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/239a6c2b5cf6df25b93d95b5df30fb5fbacbfbcd..7415b6acc6794b420f8884de0f73fcb3e020d9c0:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 3b42e4c566..e31c9c5e07 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -16,7 +16,6 @@ #include "src/mc/mc_replay.hpp" #include "src/mc/remote/Client.hpp" #include "src/simix/smx_host_private.hpp" -#include "src/simix/smx_synchro_private.hpp" #include "src/surf/HostImpl.hpp" #include "src/surf/cpu_interface.hpp" @@ -123,7 +122,7 @@ void ActorImpl::exit() sleep->surf_action_->cancel(); sleep->post(); } else if (raw != nullptr) { - SIMIX_synchro_stop_waiting(this, &simcall); + raw->finish(); } else if (io != nullptr) { io->cancel(); } else { @@ -144,8 +143,8 @@ void ActorImpl::kill(ActorImpl* actor) return; } - XBT_DEBUG("Actor '%s'@%s is killing actor '%s'@%s", get_cname(), host_->get_cname(), actor->get_cname(), - actor->host_->get_cname()); + XBT_DEBUG("Actor '%s'@%s is killing actor '%s'@%s", get_cname(), host_ ? host_->get_cname() : "", actor->get_cname(), + actor->host_ ? actor->host_->get_cname() : ""); actor->exit(); @@ -357,7 +356,7 @@ void ActorImpl::throw_exception(std::exception_ptr e) activity::RawImplPtr raw = boost::dynamic_pointer_cast(waiting_synchro); if (raw != nullptr) { - SIMIX_synchro_stop_waiting(this, &simcall); + raw->finish(); } activity::IoImplPtr io = boost::dynamic_pointer_cast(waiting_synchro); @@ -541,7 +540,7 @@ void SIMIX_process_throw(smx_actor_t actor, xbt_errcat_t cat, int value, const c simgrid::kernel::activity::RawImplPtr raw = boost::dynamic_pointer_cast(actor->waiting_synchro); if (raw != nullptr) { - SIMIX_synchro_stop_waiting(actor, &actor->simcall); + raw->finish(); } simgrid::kernel::activity::IoImplPtr io =