Home | History | Annotate | Download | only in internal

Lines Matching defs:Task

206 struct Task {
207 Task() : local_allocator(nullptr) {}
208 virtual ~Task() {}
306 void StartWork(Task* task) {
308 task->local_allocator = &local_allocator_;
309 task_ = task;
321 // The task to be worked on.
322 Task* task_;
359 void Execute(const std::vector<Task*>& tasks) {
367 std::for_each(tasks.begin(), --tasks.end(), [this, &n](Task *task) {
368 workers_[n++]->StartWork(task);
371 Task* task = tasks.back();
372 task->local_allocator = &main_thread_task_allocator_;
373 task->Run();
378 std::for_each(tasks.begin(), tasks.end(), [](Task *task) {
379 delete task;
409 // while the last task will be run directly on the main thread.
417 // The task we use to implement a multi-threaded Gemm: a block of the
425 struct GemmWithPackedRhsTask : Task {
674 std::vector<Task*> tasks;