From 777c00ecab1d7b86679a2c5dd6b9ca8f8adde3ff Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 21 Aug 2018 08:20:53 +0200 Subject: [PATCH] s4u::Exec::wait(): start the tasks on need --- src/s4u/s4u_Exec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s4u/s4u_Exec.cpp b/src/s4u/s4u_Exec.cpp index 5f1d222747..c864b65b17 100644 --- a/src/s4u/s4u_Exec.cpp +++ b/src/s4u/s4u_Exec.cpp @@ -32,6 +32,8 @@ Activity* Exec::cancel() Activity* Exec::wait() { + if (state_ == State::INITED) + start(); simcall_execution_wait(pimpl_); state_ = State::FINISHED; on_completion(Actor::self()); -- 2.20.1