SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk_strategy_fpriority.h File Reference

Fixed-priority preemptive task-switching strategy with round-robin within each priority level (stk::SwitchStrategyFixedPriority / stk::SwitchStrategyFP32, and the no-sleep-yield variant stk::SwitchStrategyFP32_NSY). More...

#include "stk_common.h"
Include dependency graph for stk_strategy_fpriority.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  stk::SwitchStrategyFixedPriority< MAX_PRIORITIES, NoSleepYield >
 Fixed-priority preemptive scheduling strategy with round-robin arbitration within each priority level. More...

Namespaces

namespace  stk
 Namespace of STK package.

Typedefs

typedef SwitchStrategyFixedPriority< 32 > stk::SwitchStrategyFP32
 Shorthand alias for SwitchStrategyFixedPriority<32>: 32 priority levels (0..31), using a single 32-bit m_ready_bitmap for O(1) highest-priority lookup.
typedef SwitchStrategyFixedPriority< 32, true > stk::SwitchStrategyFP32_NSY
 Shorthand alias for SwitchStrategyFixedPriority<32, true>: same as SwitchStrategyFP32 but Yield() keeps the task runnable and hands the CPU to same-priority peers only (NOSLEEP_YIELD_API = 1).

Detailed Description

Fixed-priority preemptive task-switching strategy with round-robin within each priority level (stk::SwitchStrategyFixedPriority / stk::SwitchStrategyFP32, and the no-sleep-yield variant stk::SwitchStrategyFP32_NSY).

Definition in file stk_strategy_fpriority.h.