-
Committer:
Facebook Github Bot
-
Author(s):
Yang Zhang
-
Date:
2018-07-18 21:22:19 UTC
-
Revision ID:
git-v1:ac6b1e283b5f09a39f17a2c8014275135c808bfb
Add ThreadPoolExecutor::numActiveThreads()
Summary: ThreadPoolExecutor could dynamically adjust number of threads according to workload. Add numActiveThreads() so we can check how many active threads are actually there, while numThreads() returns the upper bound of threads.
Reviewed By: djwatson
Differential Revision: D8683795
fbshipit-source-id: 09f3b4ee8570e2f2f9f97e939061693f3e0639af