| 19 | auto enqueue(F &&f, Args &&...args) -> std::future<std::invoke_result_t<F, Args...>>; |
| 20 | ~ThreadPool(); |
| 21 | size_t getThreadNum() const { |
| 22 | return workers.size(); |
| 23 | } |
| 24 | |
| 25 | private: |
| 26 | // need to keep track of threads so we can join them |
no test coverage detected