| 588 | } |
| 589 | |
| 590 | int ThreadPool::GetCapacity() { |
| 591 | std::unique_lock<std::mutex> lock(state_->mutex_); |
| 592 | return state_->desired_capacity_; |
| 593 | } |
| 594 | |
| 595 | int ThreadPool::GetNumTasks() { |
| 596 | std::unique_lock<std::mutex> lock(state_->mutex_); |
no outgoing calls