From f783004debe05caaaf3fd1de48e0e7edc8680078 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 8 Feb 2019 11:02:26 +0100 Subject: [PATCH] change_host -> set_host --- src/s4u/s4u_Actor.cpp | 2 +- src/simix/ActorImpl.cpp | 2 +- src/simix/ActorImpl.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.20.1