Lines Matching refs:task
89 Task* task = nullptr; in Run() local
91 while ((task = thread_pool_->GetTask(self)) != nullptr) { in Run()
92 task->Run(self); in Run()
93 task->Finalize(); in Run()
113 void ThreadPool::AddTask(Thread* self, Task* task) { in AddTask() argument
115 tasks_.push_back(task); in AddTask()
221 Task* task = TryGetTaskLocked(); in GetTask() local
222 if (task != nullptr) { in GetTask()
223 return task; in GetTask()
252 Task* task = tasks_.front(); in TryGetTaskLocked() local
254 return task; in TryGetTaskLocked()
262 Task* task = nullptr; in Wait() local
263 while ((task = TryGetTask(self)) != nullptr) { in Wait()
264 task->Run(self); in Wait()
265 task->Finalize(); in Wait()