From: Frederic Suter Date: Fri, 8 Feb 2019 10:02:26 +0000 (+0100) Subject: change_host -> set_host X-Git-Tag: v3_22~381 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f783004debe05caaaf3fd1de48e0e7edc8680078 change_host -> set_host --- diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 949daaa711..5380bba1f9 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -106,7 +106,7 @@ void Actor::migrate(Host* new_host) xbt_assert(exec.get() != nullptr, "We can only migrate blocked actors when they are blocked on executions."); exec->migrate(new_host); } - this->pimpl_->change_host(new_host); + this->pimpl_->set_host(new_host); }); s4u::Actor::on_migration_end(this); diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index a1d2bda2a7..95beeba9d7 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -262,7 +262,7 @@ void ActorImpl::throw_exception(std::exception_ptr e) waiting_synchro = nullptr; } -void ActorImpl::change_host(sg_host_t dest) +void ActorImpl::set_host(sg_host_t dest) { simgrid::xbt::intrusive_erase(host_->pimpl_->process_list_, *this); host_ = dest; diff --git a/src/simix/ActorImpl.hpp b/src/simix/ActorImpl.hpp index 051511c0f1..e04ec22748 100644 --- a/src/simix/ActorImpl.hpp +++ b/src/simix/ActorImpl.hpp @@ -106,7 +106,7 @@ public: void* get_user_data() { return userdata_; } /** Ask the actor to throw an exception right away */ void throw_exception(std::exception_ptr e); - void change_host(sg_host_t dest); + void set_host(sg_host_t dest); }; class ProcessArg {