Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factor Activity::wait() and wait_for() through CRTP.
[simgrid.git] / src / s4u / s4u_Exec.cpp
index 0fa076c..2ae3ad2 100644 (file)
@@ -54,22 +54,6 @@ Exec* Exec::start()
   return this;
 }
 
-Exec* Exec::wait()
-{
-  return this->wait_for(-1);
-}
-
-Exec* Exec::wait_for(double timeout)
-{
-  if (state_ == State::INITED)
-    vetoable_start();
-
-  kernel::actor::ActorImpl* issuer = kernel::actor::ActorImpl::self();
-  kernel::actor::simcall_blocking([this, issuer, timeout] { this->get_impl()->wait_for(issuer, timeout); });
-  complete(State::FINISHED);
-  return this;
-}
-
 int Exec::wait_any_for(std::vector<ExecPtr>* execs, double timeout)
 {
   std::vector<kernel::activity::ExecImpl*> rexecs(execs->size());