Lines Matching defs:task
78 * @param task new task to Execute
80 void Push(const Task &task)
82 PushTask(task);
98 bool GetTask(Task &task)
108 task = taskQueue_.top();
113 void PushTask(const Task &task)
116 taskQueue_.push(task);
146 * 2 this thread should run task
162 Task task;
163 if (GetTask(task)) {
164 task.Execute();
174 if (GetTask(task)) {
175 task.Execute();
187 * other thread put a task to the taskQueue_