Returns the number of threads in the pool.
| 22 | |
| 23 | // Returns the number of threads in the pool. |
| 24 | int VirtualThreadpool::NumThreads() const { |
| 25 | return underlying_threadpool_->NumThreads(); |
| 26 | } |
| 27 | |
| 28 | // Returns a logical thread index between 0 and NumThreads() - 1 if called |
| 29 | // from one of the threads in the pool. Returns -1 otherwise. |
no outgoing calls