Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow remote exec: s4u::Exec->setHost()
[simgrid.git] / src / s4u / s4u_actor.cpp
index cfa7de2..a437de0 100644 (file)
@@ -201,7 +201,7 @@ Actor* Actor::restart()
 ExecPtr Actor::exec_init(double flops_amount)
 {
   ExecPtr res        = ExecPtr(new Exec());
-  res->runner_       = SIMIX_process_self();
+  res->host_         = this->getHost();
   res->flops_amount_ = flops_amount;
   res->setRemains(flops_amount);
   return res;
@@ -253,13 +253,13 @@ XBT_PUBLIC(void) sleep_until(double timeout)
 
 void execute(double flops)
 {
-  smx_activity_t s = simcall_execution_start(nullptr,flops,1.0/*priority*/,0./*bound*/);
+  smx_activity_t s = simcall_execution_start(nullptr, flops, 1.0 /*priority*/, 0. /*bound*/, getHost());
   simcall_execution_wait(s);
 }
 
 void execute(double flops, double priority)
 {
-  smx_activity_t s = simcall_execution_start(nullptr,flops,1 / priority/*priority*/,0./*bound*/);
+  smx_activity_t s = simcall_execution_start(nullptr, flops, 1 / priority /*priority*/, 0. /*bound*/, getHost());
   simcall_execution_wait(s);
 }