Searched refs:Task (Results 1 – 2 of 2) sorted by relevance
34 struct Task { struct38 friend bool operator<(const Task& lhs, const Task& rhs); argument44 std::priority_queue<Task> mTasks;
30 bool operator<(const WorkerThread::Task& lhs, const WorkerThread::Task& rhs) { in operator <()49 mTasks.push(Task({when, task})); in schedule()55 priority_queue<Task>().swap(mTasks); // empty queue in cancelAll()