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_pthreshold.h File Reference

Fixed-priority preemptive strategy with ThreadX-style Preemption-Threshold and optional per-task time-slicing (stk::sched::SwitchStrategyPreemptionThreshold / stk::sched::SwitchStrategyPT32 / stk::sched::SwitchStrategyPT32_TS / stk::sched::SwitchStrategyPT64 / stk::sched::SwitchStrategyPT64_TS). More...

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

Go to the source code of this file.

Classes

class  stk::sched::SwitchStrategyPreemptionThreshold< MAX_PRIORITIES, TIMESLICE, ReadyBitmap >
 Fixed-priority scheduling with Preemption-Threshold (PTS), modelled on Azure RTOS / ThreadX. Each task has a priority P and a threshold T with T >= P. While a task is running it can be preempted only by tasks whose priority is strictly greater than T. With T == P the task behaves like a normal fixed-priority task. More...
class  stk::SwitchStrategyPreemptionThreshold< MAX_PRIORITIES, TIMESLICE, ReadyBitmap >
 Fixed-priority scheduling with Preemption-Threshold (PTS), modelled on Azure RTOS / ThreadX. Each task has a priority P and a threshold T with T >= P. While a task is running it can be preempted only by tasks whose priority is strictly greater than T. With T == P the task behaves like a normal fixed-priority task. 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 SwitchStrategyPreemptionThreshold< 32 > stk::sched::SwitchStrategyPT32
 SwitchStrategyPreemptionThreshold with 32 priority levels.
typedef SwitchStrategyPreemptionThreshold< 32, true > stk::sched::SwitchStrategyPT32_TS
 SwitchStrategyPreemptionThreshold with 32 priority levels and per-task time-slicing, for use with stk::KERNEL_TIMESLICE.
typedef SwitchStrategyPreemptionThreshold< 64 > stk::sched::SwitchStrategyPT64
 SwitchStrategyPreemptionThreshold with 64 priority levels (64-bit bitmaps).
typedef SwitchStrategyPreemptionThreshold< 64, true > stk::sched::SwitchStrategyPT64_TS
 SwitchStrategyPreemptionThreshold with 64 priority levels (64-bit bitmaps) and per-task time-slicing, for use with stk::KERNEL_TIMESLICE.
typedef sched::SwitchStrategyEDF SwitchStrategyEDF stk::__stk_attr_deprecated_type("Use stk::sched::SwitchStrategyEDF")

Detailed Description

Fixed-priority preemptive strategy with ThreadX-style Preemption-Threshold and optional per-task time-slicing (stk::sched::SwitchStrategyPreemptionThreshold / stk::sched::SwitchStrategyPT32 / stk::sched::SwitchStrategyPT32_TS / stk::sched::SwitchStrategyPT64 / stk::sched::SwitchStrategyPT64_TS).

Definition in file stk_strategy_pthreshold.h.