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