Returns the total number of thread resources for this pool (i.e. num_optional_threads + num_required_threads).
| 161 | /// Returns the total number of thread resources for this pool |
| 162 | /// (i.e. num_optional_threads + num_required_threads). |
| 163 | int64_t num_threads() const { |
| 164 | return num_required_threads() + num_optional_threads(); |
| 165 | } |
| 166 | |
| 167 | /// Returns true if the number of optional threads has now exceeded the quota. |
| 168 | bool optional_exceeded() { |