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

#include <scheduler.h>

Static Public Member Functions

static LoopSchedule plan (const SleepEligibility &eligibility, bool appDirty, bool inputPending, uint32_t earliestDeadlineMs)
 

Detailed Description

Keep sleep eligibility and active/idle loop pacing in one tested policy.

Member Function Documentation

◆ plan()

static LoopSchedule ersa::runtime::RuntimeScheduler::plan ( const SleepEligibility &  eligibility,
bool  appDirty,
bool  inputPending,
uint32_t  earliestDeadlineMs 
)
inlinestatic

Choose a platform wait from product blockers and the earliest deadline. GPIO interrupts wake the task from sleep, so a fully idle wait can use its real service deadline. Awake pending work gets a short poll; quiescent awake work uses a relaxed cadence.


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