Returns the number of thread resources returned by successful calls to TryAcquireThreadToken.
| 157 | /// Returns the number of thread resources returned by successful calls |
| 158 | /// to TryAcquireThreadToken. |
| 159 | int num_optional_threads() const { return num_threads_.Load() >> OPTIONAL_SHIFT; } |
| 160 | |
| 161 | /// Returns the total number of thread resources for this pool |
| 162 | /// (i.e. num_optional_threads + num_required_threads). |