Home
last modified time | relevance | path

Searched refs:Task (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/broadcastradio/common/utils/include/broadcastradio-utils/
DWorkerThread.h34 struct Task { struct
38 friend bool operator<(const Task& lhs, const Task& rhs); argument
44 std::priority_queue<Task> mTasks;
/hardware/interfaces/broadcastradio/common/utils/
DWorkerThread.cpp30 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()