Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ersa::runtime::WakeDeadlineSet Class Reference

#include <scheduler.h>

Public Member Functions

 WakeDeadlineSet (uint32_t maximumWaitMs)
 
void includeDelay (uint32_t delayMs)
 
uint32_t delayMs () const
 

Private Attributes

uint32_t delayMs_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WakeDeadlineSet()

ersa::runtime::WakeDeadlineSet::WakeDeadlineSet ( uint32_t  maximumWaitMs)
inlineexplicit

Start with the longest time the caller is willing to remain asleep.

Member Function Documentation

◆ delayMs()

uint32_t ersa::runtime::WakeDeadlineSet::delayMs ( ) const
inline

Return the earliest contributed wake delay, including zero if due now.

◆ includeDelay()

void ersa::runtime::WakeDeadlineSet::includeDelay ( uint32_t  delayMs)
inline

Keep the earlier of the current wait and a service-provided delay.

Member Data Documentation

◆ delayMs_

uint32_t ersa::runtime::WakeDeadlineSet::delayMs_
private

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