22template<
typename Task = fl::function<
void()>>
51 while (!
mQueue.empty() && currentTime >=
mQueue.top().executeAt) {
size_t tick(u32 currentTime) FL_NO_EXCEPT
Execute all tasks with timestamp <= currentTime.
void clear() FL_NO_EXCEPT
Clear all scheduled tasks.
fl::priority_queue_stable< ScheduledTask > mQueue
size_t pendingCount() const FL_NO_EXCEPT
Get number of pending scheduled tasks.
void schedule(u32 timestamp, Task task) FL_NO_EXCEPT
Schedule a task for execution at specified timestamp.
RpcScheduler() FL_NO_EXCEPT=default
Stable priority queue that maintains FIFO ordering for equal-priority elements.
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Base definition for an LED controller.
bool operator<(const ScheduledTask &other) const FL_NO_EXCEPT