Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change_host -> set_host
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 8 Feb 2019 10:02:26 +0000 (11:02 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 8 Feb 2019 10:02:26 +0000 (11:02 +0100)
src/s4u/s4u_Actor.cpp
src/simix/ActorImpl.cpp
src/simix/ActorImpl.hpp

index 949daaa..5380bba 100644 (file)
@@ -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);
index a1d2bda..95beeba 100644 (file)
@@ -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;
index 051511c..e04ec22 100644 (file)
@@ -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 {