This handler encapsulates functionality which is used to manage thread priorities.
More...
|
typedef uint32_t | Priority_Control |
| The following type defines the control block used to manage thread priorities. More...
|
|
|
uint8_t | rtems_maximum_priority |
| This variable contains the configured number of priorities.
|
|
const unsigned char | __log2table [256] |
| This table is used by the generic bitfield routines to perform a highly optimized bit scan without the use of special CPU instructions.
|
|
This handler encapsulates functionality which is used to manage thread priorities.
At the SuperCore level 256 priority levels are supported with lower numbers representing logically more important threads. The priority level 0 is reserved for internal RTEMS use. Typically it is assigned to threads which defer internal RTEMS actions from an interrupt to thread level to improve interrupt response. Priority level 255 is assigned to the IDLE thread and really should not be used by application threads. The default IDLE thread implementation is an infinite "branch to self" loop which never yields to other threads at the same priority.
◆ _Bitfield_Find_first_bit
Gets the _bit_number of the first bit set in the specified value.
This routine returns the _bit_number of the first bit set in the specified value. The correspondence between _bit_number and actual bit position is processor dependent. The search for the first bit set may run from most to least significant bit or vice-versa.
- Parameters
-
[in] | _value | is the value to bit scan. |
[in] | _bit_number | is the position of the first bit set. |
- Note
- This routine is used when the executing thread is removed from the ready state and, as a result, its performance has a significant impact on the performance of the executive as a whole.
-
This routine must be a macro because if a CPU specific version is used it will most likely use inline assembly.
◆ _Priority_Bits_index
This method returns the bit index position for the specified priority.
- Parameters
-
[in] | _priority | is the priority for which we need the index. |
- Return values
-
This | method returns the array index into the priority bit map. |
- Note
- This may simply be a pass through to a CPU dependent implementation.
◆ _Priority_Mask
This method returns the priority bit mask for the specified major or minor bit number.
- Parameters
-
[in] | _bit_number | is the bit number for which we need a mask |
- Return values
-
- Note
- This may simply be a pass through to a CPU dependent implementation.
◆ PRIORITY_DEFAULT_MAXIMUM
#define PRIORITY_DEFAULT_MAXIMUM 255 |
This defines the default lowest (least important) thread priority.
◆ PRIORITY_MAXIMUM
This defines the lowest (least important) thread priority.
◆ PRIORITY_MINIMUM
#define PRIORITY_MINIMUM 0 |
◆ PRIORITY_PSEUDO_ISR
This defines the priority of pseudo-ISR threads.
Examples are the MPCI and timer server threads.
◆ Priority_Control
The following type defines the control block used to manage thread priorities.
- Note
- Priority 0 is reserved for internal threads only.