Embedded Artistry Framework
Embedded Systems C++ Framework
Public Member Functions | List of all members
embvm::TimerManager< TMaxTimers, TLock, TTimeUnit, TTimeoutCallback, TTimerDevice >::scheduleQueueCompare Struct Reference

Comparator for sorting scheduled timers. More...

Public Member Functions

bool operator() (const TQueueHandle &lhs, const TQueueHandle &rhs) noexcept
 

Detailed Description

template<const size_t TMaxTimers = 0, typename TLock = embutil::nop_lock, typename TTimeUnit = embvm::timer::timer_period_t, typename TTimeoutCallback = stdext::inplace_function<void()>, typename TTimerDevice = embvm::timer::Timer>
struct embvm::TimerManager< TMaxTimers, TLock, TTimeUnit, TTimeoutCallback, TTimerDevice >::scheduleQueueCompare

Comparator for sorting scheduled timers.

This comparison operator is used when inserting new timers into the scheduled list. Timers must be sorted so that they execute in proper timeout order.

Member Function Documentation

◆ operator()()

template<const size_t TMaxTimers = 0, typename TLock = embutil::nop_lock, typename TTimeUnit = embvm::timer::timer_period_t, typename TTimeoutCallback = stdext::inplace_function<void()>, typename TTimerDevice = embvm::timer::Timer>
bool embvm::TimerManager< TMaxTimers, TLock, TTimeUnit, TTimeoutCallback, TTimerDevice >::scheduleQueueCompare::operator() ( const TQueueHandle lhs,
const TQueueHandle rhs 
)
inlinenoexcept

The documentation for this struct was generated from the following file: