Searched refs:WorkItem (Results 1 – 1 of 1) sorted by relevance
44 struct WorkItem { struct45 WorkItem() = delete;46 WorkItem(const WorkItem& other) = delete;47 WorkItem& operator=(const WorkItem& other) = delete; argument48 WorkItem(WorkItem&& other) = default;49 WorkItem& operator=(WorkItem&& other) = default; argument51 WorkItem(nsecs_t runAt, std::function<void()>&& work) in WorkItem() function64 std::vector<WorkItem> toProcess; in process() argument70 [&now](WorkItem& item) { return item.runAt > now; }); in process()84 enqueue(WorkItem{time, std::function<void()>(std::forward<F>(func))}); in postAt()[all …]