ThreadPool
ThreadPool copied to clipboard
it would be nice to add a query method to see if any workers are hot
Some thing like getActiveCount() in java, so to let consumers of the threadpool know if waiting is needed.
You can check this by calling .wait_for(chrono::seconds(0)) on the futures and see for how many it doesn't return std::future_status::ready.