20 #ifndef _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H 21 #define _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H 70 for ( index = 0 ; index <= (size_t) maximum_priority ; ++index ) {
135 _Priority_bit_map_Remove( bit_map, &ready_queue->
Priority_map );
150 context = _Scheduler_priority_Get_context( scheduler );
151 the_node = _Scheduler_priority_Node_downcast( node );
178 _Assert( first !=
_Chain_Tail( &ready_queues[ index ] ) );
196 _Scheduler_priority_Get_context( scheduler );
205 _Scheduler_Update_heir( heir, force_dispatch );
219 unsigned int new_priority,
225 ready_queue->
ready_chain = &ready_queues[ new_priority ];
227 _Priority_bit_map_Initialize_information(
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_initialize(Chain_Control *ready_queues, Priority_Control maximum_priority)
Ready queue initialization.
Definition: schedulerpriorityimpl.h:63
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:189
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Append a node (unprotected).
Definition: chainimpl.h:679
Chain_Control Ready[0]
One ready queue per priority level.
Definition: schedulerpriority.h:74
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:105
Chain_Control * ready_chain
Definition: schedulerpriority.h:87
Definition: schedulerpriority.h:60
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
Definition: prioritybitmap.h:37
Priority_bit_map_Information Priority_map
Definition: schedulerpriority.h:90
Inlined Routines Associated with the Manipulation of the Scheduler.
unsigned int current_priority
The thread priority currently used by the scheduler.
Definition: schedulerpriority.h:84
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:557
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(Chain_Control *the_chain)
Initialize this chain as empty.
Definition: chainimpl.h:504
uint64_t Priority_Control
The thread priority control.
Definition: priority.h:66
Inlined Routines in the Priority Handler Bit Map Implementation.
RTEMS_INLINE_ROUTINE Chain_Node * _Chain_First(const Chain_Control *the_chain)
Return pointer to chain's first node.
Definition: chainimpl.h:257
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:124
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(const Chain_Control *the_chain)
Does this chain have only one node.
Definition: chainimpl.h:449
Priority_bit_map_Control Bit_map
Bit map to indicate non-empty ready queues.
Definition: schedulerpriority.h:69
Data for ready queue operations.
Definition: schedulerpriority.h:80
Scheduler_priority_Ready_queue Ready_queue
The associated ready queue of this node.
Definition: schedulerpriority.h:105
Chain_Node Node
Definition: objectdata.h:41
Objects_Control Object
Definition: thread.h:730
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add(Priority_bit_map_Control *bit_map, Priority_bit_map_Information *bit_map_info)
Definition: prioritybitmapimpl.h:144
Scheduler node specialization for Deterministic Priority schedulers.
Definition: schedulerpriority.h:96
RTEMS_INLINE_ROUTINE Chain_Node * _Chain_Tail(Chain_Control *the_chain)
Return pointer to chain tail.
Definition: chainimpl.h:224
RTEMS_INLINE_ROUTINE void _Chain_Initialize_node(Chain_Node *the_node)
Initializes a chain node.
Definition: chainimpl.h:119
unsigned context
Definition: tlb.h:108
Scheduler control.
Definition: scheduler.h:266
Scheduler node for per-thread data.
Definition: schedulernode.h:65
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_update(Scheduler_priority_Ready_queue *ready_queue, unsigned int 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:217
Constants and Structures Related with the Thread Control Block.
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:84
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(Chain_Control *the_chain, Chain_Node *the_node)
Prepend a node (unprotected).
Definition: chainimpl.h:728
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:170