| 292 | } |
| 293 | |
| 294 | int ThreadPool::GetThreadIndex() { |
| 295 | std::unique_lock<std::mutex> lock(mutex_); |
| 296 | return thread_id_to_index_.at(GetThreadId()); |
| 297 | } |
| 298 | |
| 299 | int GetEffectiveNumThreads(const int num_threads) { |
| 300 | int num_effective_threads = num_threads; |
no outgoing calls