Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make the future simgrid::*Exception inherit of legacy xbt_ex
[simgrid.git] / src / s4u / s4u_Exec.cpp
index 5f1d222..8250f94 100644 (file)
@@ -32,13 +32,15 @@ Activity* Exec::cancel()
 
 Activity* Exec::wait()
 {
+  if (state_ == State::INITED)
+    start();
   simcall_execution_wait(pimpl_);
   state_ = State::FINISHED;
   on_completion(Actor::self());
   return this;
 }
 
-Activity* Exec::wait(double timeout)
+Activity* Exec::wait_for(double timeout)
 {
   THROW_UNIMPLEMENTED;
   return this;