20 #ifndef _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H 21 #define _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H 126 _Priority_bit_map_Remove( bit_map, &ready_queue->
Priority_map );
138 _Scheduler_priority_Get_context( scheduler );
184 _Scheduler_priority_Get_context( scheduler );
193 _Scheduler_Update_heir( heir, force_dispatch );
212 ready_queue->
ready_chain = &ready_queues[ new_priority ];
214 _Priority_bit_map_Initialize_information(
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(const Scheduler_Control *scheduler, Thread_Control *the_thread, bool force_dispatch)
Scheduling decision logic.
Definition: schedulerpriorityimpl.h:177
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Append a node (unprotected).
Definition: chainimpl.h:743
This is used to manage each element (node) which is placed on a chain.
Definition: chain.h:65
Chain_Control Ready[0]
One ready queue per priority level.
Definition: schedulerpriority.h:73
Scheduler control.
Definition: scheduler.h:192
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue_first(Chain_Node *node, Scheduler_priority_Ready_queue *ready_queue, Priority_bit_map_Control *bit_map)
Enqueues a node on the specified ready queue as first.
Definition: schedulerpriorityimpl.h:97
Chain_Control * ready_chain
This field points to the Ready FIFO for this thread's priority.
Definition: schedulerpriority.h:81
Definition: schedulerpriority.h:59
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
Definition: prioritybitmap.h:40
Priority_bit_map_Information Priority_map
This field contains precalculated priority map indices.
Definition: schedulerpriority.h:84
Inlined Routines Associated with the Manipulation of the Scheduler.
This is used to manage a chain.
Definition: chain.h:83
#define PRIORITY_MAXIMUM
This defines the lowest (least important) thread priority.
Definition: priority.h:76
Thread Manipulation with the Priority-Based Scheduler.
RTEMS_INLINE_ROUTINE void _Chain_Extract_unprotected(Chain_Node *the_node)
Extract this node (unprotected).
Definition: chainimpl.h:639
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(Chain_Control *the_chain)
Initialize this chain as empty.
Definition: chainimpl.h:613
Constants and Structures Related with the Thread Control Block.
Inlined Routines in the Priority Handler Bit Map Implementation.
RTEMS_INLINE_ROUTINE int _Scheduler_priority_Priority_compare_body(Priority_Control p1, Priority_Control p2)
Priority comparison.
Definition: schedulerpriorityimpl.h:229
uint32_t Priority_Control
The following type defines the control block used to manage thread priorities.
Definition: priority.h:56
Objects_Control Object
This field is the object management structure for each thread.
Definition: thread.h:673
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract(Chain_Node *node, Scheduler_priority_Ready_queue *ready_queue, Priority_bit_map_Control *bit_map)
Extracts a node from the specified ready queue.
Definition: schedulerpriorityimpl.h:116
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(const Chain_Control *the_chain)
Does this chain have only one node.
Definition: chainimpl.h:558
This structure defines the Thread Control Block (TCB).
Definition: thread.h:671
Priority_bit_map_Control Bit_map
Bit map to indicate non-empty ready queues.
Definition: schedulerpriority.h:68
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_update(Scheduler_priority_Ready_queue *ready_queue, Priority_Control new_priority, Priority_bit_map_Control *bit_map, Chain_Control *ready_queues)
Updates the specified ready queue data according to the new priority value.
Definition: schedulerpriorityimpl.h:205
Data for ready queue operations.
Definition: schedulerpriority.h:79
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_initialize(Chain_Control *ready_queues)
Ready queue initialization.
Definition: schedulerpriorityimpl.h:56
Scheduler_priority_Ready_queue Ready_queue
The associated ready queue of this node.
Definition: schedulerpriority.h:99
Chain_Node Node
This is the chain node portion of an object.
Definition: object.h:234
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add(Priority_bit_map_Control *bit_map, Priority_bit_map_Information *bit_map_info)
Priority Queue implemented by bit map.
Definition: prioritybitmapimpl.h:184
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG.
Definition: assert.h:83
Scheduler node specialization for Deterministic Priority schedulers.
Definition: schedulerpriority.h:90
RTEMS_INLINE_ROUTINE Chain_Node * _Chain_Tail(Chain_Control *the_chain)
Return pointer to chain tail.
Definition: chainimpl.h:333
RTEMS_INLINE_ROUTINE Chain_Node * _Chain_First(Chain_Control *the_chain)
Return pointer to chain's first node.
Definition: chainimpl.h:366
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue(Chain_Node *node, Scheduler_priority_Ready_queue *ready_queue, Priority_bit_map_Control *bit_map)
Enqueues a node on the specified ready queue.
Definition: schedulerpriorityimpl.h:76
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Prepend a node (unprotected).
Definition: chainimpl.h:787
RTEMS_INLINE_ROUTINE Chain_Node * _Scheduler_priority_Ready_queue_first(Priority_bit_map_Control *bit_map, Chain_Control *ready_queues)
Return a pointer to the first node.
Definition: schedulerpriorityimpl.h:158