Lines Matching refs:Thread
46 Thread* self = Thread::Current(); in Run()
65 void ThreadPool::AddTask(Thread* self, Task* task) { in AddTask()
86 Thread* self = Thread::Current(); in ThreadPool()
96 MutexLock mu(Thread::Current(), task_queue_lock_); in SetMaxActiveWorkers()
103 Thread* self = Thread::Current(); in ~ThreadPool()
115 void ThreadPool::StartWorkers(Thread* self) { in StartWorkers()
123 void ThreadPool::StopWorkers(Thread* self) { in StopWorkers()
128 Task* ThreadPool::GetTask(Thread* self) { in GetTask()
160 Task* ThreadPool::TryGetTask(Thread* self) { in TryGetTask()
165 Task* ThreadPool::TryGetTaskLocked(Thread* self) { in TryGetTaskLocked()
174 void ThreadPool::Wait(Thread* self, bool do_work, bool may_hold_locks) { in Wait()
193 size_t ThreadPool::GetTaskCount(Thread* self) { in GetTaskCount()
203 Thread* self = Thread::Current(); in Run()
283 WorkStealingTask* WorkStealingThreadPool::FindTaskToStealFrom(Thread* self) { in FindTaskToStealFrom()