diff options
Diffstat (limited to 'src/buildtool/multithreading/task_system.hpp')
-rw-r--r-- | src/buildtool/multithreading/task_system.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/multithreading/task_system.hpp b/src/buildtool/multithreading/task_system.hpp index 6387988a..888ba090 100644 --- a/src/buildtool/multithreading/task_system.hpp +++ b/src/buildtool/multithreading/task_system.hpp @@ -48,6 +48,9 @@ class TaskSystem { return thread_count_; } + // Wait for all queues to become empty _and_ all tasks to finish. + void Finish() noexcept; + private: std::size_t const thread_count_{ std::max(1U, std::thread::hardware_concurrency())}; |