Searched refs:WorkItem (Results 1 – 1 of 1) sorted by relevance
45 struct WorkItem { struct46 WorkItem() = delete;47 WorkItem(const WorkItem& other) = delete;48 WorkItem& operator=(const WorkItem& other) = delete; argument49 WorkItem(WorkItem&& other) = default;50 WorkItem& operator=(WorkItem&& other) = default; argument52 WorkItem(nsecs_t runAt, std::function<void()>&& work) in WorkItem() function65 std::vector<WorkItem> toProcess; in process() argument71 [&now](WorkItem& item) { return item.runAt > now; }); in process()85 enqueue(WorkItem{time, std::function<void()>(std::forward<F>(func))}); in postAt()[all …]