Return the number of threads currently running (or in the process of starting up) for this thread pool.
| 317 | // Return the number of threads currently running (or in the process of starting up) |
| 318 | // for this thread pool. |
| 319 | int num_threads() const { |
| 320 | MutexLock l(lock_); |
| 321 | return num_threads_ + num_threads_pending_start_; |
| 322 | } |
| 323 | |
| 324 | // Whether the ThreadPool's queue is overloaded. If queue overload threshold |
| 325 | // isn't set, returns 'false'. Otherwise, returns whether the queue is |
no outgoing calls