![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Per-task Hard Real-Time (HRT) scheduling metadata. More...
#include <stk.h>
Public Member Functions | |
| HrtInfo () | |
| void | Clear () |
| Clear all fields, ready for slot re-use or re-activation. | |
Public Attributes | |
| Timeout | periodicity |
| Activation period in ticks: the task is re-activated every this many ticks. | |
| Timeout | deadline |
| Maximum allowed active duration in ticks (relative to switch-in). Exceeding this triggers OnDeadlineMissed(). | |
| Timeout | duration |
| Ticks spent in the active (non-sleeping) state in the current period. Incremented by UpdateTaskState(); reset to 0 on switch-out. | |
| volatile bool | done |
| Set to true when the task signals work completion (via Yield() or on exit). Triggers HrtOnSwitchedOut() at the next context switch. | |
Per-task Hard Real-Time (HRT) scheduling metadata.
|
inline |
Definition at line 290 of file stk.h.
References deadline, done, duration, and periodicity.
|
inline |
| Timeout stk::Kernel< TMode, TSize, TStrategy, TPlatform >::KernelTask::HrtInfo::deadline |
| volatile bool stk::Kernel< TMode, TSize, TStrategy, TPlatform >::KernelTask::HrtInfo::done |
Set to true when the task signals work completion (via Yield() or on exit). Triggers HrtOnSwitchedOut() at the next context switch.
Definition at line 306 of file stk.h.
Referenced by Clear(), HrtInfo(), and stk::Kernel< TMode, TSize, TStrategy, TPlatform >::StateSwitch().
| Timeout stk::Kernel< TMode, TSize, TStrategy, TPlatform >::KernelTask::HrtInfo::duration |
Ticks spent in the active (non-sleeping) state in the current period. Incremented by UpdateTaskState(); reset to 0 on switch-out.
Definition at line 305 of file stk.h.
Referenced by Clear(), HrtInfo(), and stk::Kernel< TMode, TSize, TStrategy, TPlatform >::UpdateTaskState().
| Timeout stk::Kernel< TMode, TSize, TStrategy, TPlatform >::KernelTask::HrtInfo::periodicity |