diff --git a/libs/async/include/psemek/async/threadpool.hpp b/libs/async/include/psemek/async/threadpool.hpp index 23419c81..381d3d1a 100644 --- a/libs/async/include/psemek/async/threadpool.hpp +++ b/libs/async/include/psemek/async/threadpool.hpp @@ -24,6 +24,8 @@ namespace psemek::async ~threadpool() override { stop(); } + std::size_t thread_count() const { return threads_.size(); } + void post(task t) override; void post_at(clock::time_point time, task t) override;