Loading src/core/module/ThreadPool.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ void ThreadPool::checkException() { void ThreadPool::wait() { std::unique_lock<std::mutex> lock{run_mutex_}; run_condition_.wait(lock, [this]() { return exception_ptr_ != nullptr || (run_cnt_ == 0); }); run_condition_.wait(lock, [this]() { return exception_ptr_ != nullptr || (run_cnt_ == 0 || done_ == true); }); } /** Loading Loading
src/core/module/ThreadPool.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ void ThreadPool::checkException() { void ThreadPool::wait() { std::unique_lock<std::mutex> lock{run_mutex_}; run_condition_.wait(lock, [this]() { return exception_ptr_ != nullptr || (run_cnt_ == 0); }); run_condition_.wait(lock, [this]() { return exception_ptr_ != nullptr || (run_cnt_ == 0 || done_ == true); }); } /** Loading