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