Lines Matching refs:thread_pool
28 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, in ThreadPoolWorker() argument
30 : thread_pool_(thread_pool), in ThreadPoolWorker()
202 WorkStealingWorker::WorkStealingWorker(ThreadPool* thread_pool, const std::string& name, in WorkStealingWorker() argument
204 : ThreadPoolWorker(thread_pool, name, stack_size), task_(NULL) {} in WorkStealingWorker()
209 WorkStealingThreadPool* thread_pool = down_cast<WorkStealingThreadPool*>(thread_pool_); in Run() local
215 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
231 while (thread_pool->GetTaskCount(self) == 0) { in Run()
235 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
237 steal_from_task = thread_pool->FindTaskToStealFrom(self); in Run()
253 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
264 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()