Open littlebirds opened 6 years ago
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.
.wait_for(chrono::seconds(0))
std::future_status::ready
Some thing like getActiveCount() in java, so to let consumers of the threadpool know if waiting is needed.