Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Take simcalls {execution,io}_wait toward modernity.
[simgrid.git] / src / s4u / s4u_Exec.cpp
index eb3eb3f..227ab30 100644 (file)
@@ -29,7 +29,9 @@ Exec* Exec::wait_for(double timeout)
 {
   if (state_ == State::INITED)
     vetoable_start();
-  simcall_execution_wait(get_impl(), timeout);
+
+  kernel::actor::ActorImpl* issuer = Actor::self()->get_impl();
+  kernel::actor::simcall_blocking<void>([this, issuer, timeout] { this->get_impl()->wait_for(issuer, timeout); });
   state_ = State::FINISHED;
   on_completion(*Actor::self(), *this);
   this->release_dependencies();