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