µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::thread::priority Struct Reference

Thread priorities. More...

#include <cmsis-plus/rtos/os.h>

Public Types

enum  : priority_t {
  none = 0 ,
  idle = (1 << range) ,
  lowest = (2 << range) ,
  low = (2 << range) ,
  below_normal = (4 << range) ,
  normal = (6 << range) ,
  above_normal = (8 << range) ,
  high = (10 << range) ,
  realtime = (12 << range) ,
  highest = (((13 + 1) << range) - 1) ,
  isr = (((14 + 1) << range) - 1) ,
  error = (((15 + 1) << range) - 1)
}
 Thread priorities; intermediate values are also possible. More...
 

Static Public Attributes

static constexpr uint32_t range = 4
 Priorities pre-scaler.
 

Detailed Description

Thread priorities.

The os::rtos::thread::priority definition is a container for priorities not restricted to an enumeration.

Definition at line 278 of file os-thread.h.

Member Data Documentation

◆ range

constexpr uint32_t os::rtos::thread::priority::range = 4
staticconstexpr

Priorities pre-scaler.

Decreasing this value narrows the range of allowed priorities. It is recommended to keep it low to give the scheduler a chance to optimise accesses to the ready list with an array of priorities, which will require some pointers and counters for each priority level.

The default value of 4 gives the full range of 256 priorities; 0 gives 16 priorities, 1 gives 32 priorities, 2 gives 64 priorities, 3 gives 128 priorities.

Definition at line 294 of file os-thread.h.


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