|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <scheduler.h>
Public Member Functions | |
| WakeDeadlineSet (uint32_t maximumWaitMs) | |
| void | includeDelay (uint32_t delayMs) |
| uint32_t | delayMs () const |
Private Attributes | |
| uint32_t | delayMs_ |
Bounded, allocation-free accumulator for the next UI wake delay.
The caller seeds the maximum useful wait, then contributes each service's remaining deadline. This keeps deadline selection in one place while the owning services remain responsible for their own timing policy.
|
inlineexplicit |
Start with the longest time the caller is willing to remain asleep.
|
inline |
Return the earliest contributed wake delay, including zero if due now.
|
inline |
Keep the earlier of the current wait and a service-provided delay.
|
private |