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::sched::SwitchStrategyFixedPriority / stk::sched::SwitchStrategyFP32, and the no-sleep-yield variant stk::sched::SwitchStrategyFP32_NSY, and the 64-level stk::sched::SwitchStrategyFP64 / stk::sched::SwitchStrategyFP64_NSY). More...

#include "stk_common.h"
#include "stk_priority_bitmap.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::sched::SwitchStrategyFixedPriority< MAX_PRIORITIES, NoSleepYield, ReadyBitmap >
 Fixed-priority preemptive scheduling strategy with round-robin arbitration within each priority level. More...
class  stk::SwitchStrategyFixedPriority< MAX_PRIORITIES, NoSleepYield, ReadyBitmap >
 Fixed-priority preemptive scheduling strategy with round-robin arbitration within each priority level. More...

Namespaces

namespace  stk
 Namespace of STK package.
namespace  stk::sched
 Task-switching strategies (stk::sched::SwitchStrategy*) and their helpers (priority bitmaps, schedulability analysis). Shortcuts in namespace stk are deprecated, see __stk_attr_deprecated_type.

Typedefs

typedef SwitchStrategyFixedPriority< 32 > stk::sched::SwitchStrategyFP32
 Shorthand alias for SwitchStrategyFixedPriority<32>: 32 priority levels (0..31), using a single 32-bit m_ready_bitmap (uint32_t) for O(1) highest-priority lookup.
typedef SwitchStrategyFixedPriority< 32, true > stk::sched::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).
typedef SwitchStrategyFixedPriority< 64 > stk::sched::SwitchStrategyFP64
 Shorthand alias for SwitchStrategyFixedPriority<64>: 64 priority levels (0..63), using a 64-bit m_ready_bitmap (uint64_t) for highest-priority lookup.
typedef SwitchStrategyFixedPriority< 64, true > stk::sched::SwitchStrategyFP64_NSY
 Shorthand alias for SwitchStrategyFixedPriority<64, true>: same as SwitchStrategyFP64 but Yield() keeps the task runnable and hands the CPU to same-priority peers only (NOSLEEP_YIELD_API = 1).
typedef sched::SwitchStrategyEDF SwitchStrategyEDF stk::__stk_attr_deprecated_type("Use stk::sched::SwitchStrategyEDF")

Detailed Description

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

Definition in file stk_strategy_fpriority.h.