ThreadPool icon indicating copy to clipboard operation
ThreadPool copied to clipboard

it would be nice to add a query method to see if any workers are hot

Open littlebirds opened this issue 7 years ago • 1 comments

Some thing like getActiveCount() in java, so to let consumers of the threadpool know if waiting is needed.

littlebirds avatar Feb 07 '18 16:02 littlebirds

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.

jhasse avatar Apr 18 '18 11:04 jhasse