21 #ifndef _RTEMS_SCORE_SCHEDULEREDF_H 22 #define _RTEMS_SCORE_SCHEDULEREDF_H 50 #define SCHEDULER_EDF_MAXIMUM_PRIORITY INT_MAX 55 #define SCHEDULER_EDF_ENTRY_POINTS \ 57 _Scheduler_EDF_Initialize, \ 58 _Scheduler_EDF_Schedule, \ 59 _Scheduler_EDF_Yield, \ 60 _Scheduler_EDF_Block, \ 61 _Scheduler_EDF_Unblock, \ 62 _Scheduler_EDF_Update_priority, \ 63 _Scheduler_EDF_Map_priority, \ 64 _Scheduler_EDF_Unmap_priority, \ 65 SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP \ 66 _Scheduler_EDF_Node_initialize, \ 67 _Scheduler_default_Node_destroy, \ 68 _Scheduler_EDF_Release_job, \ 69 _Scheduler_EDF_Cancel_job, \ 70 _Scheduler_default_Tick, \ 71 _Scheduler_default_Start_idle \ 72 SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY \ void _Scheduler_EDF_Initialize(const Scheduler_Control *scheduler)
Initializes EDF scheduler.
uint64_t Priority_Control
The thread priority control.
void _Scheduler_EDF_Update_priority(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Updates the priority of the scheduler node.
Scheduler node specialization for EDF schedulers.
Thread queue context for the thread queue methods.
The priority node to build up a priority aggregation.
void _Scheduler_EDF_Block(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Removes the blocking thread from the ready queue and schedules is only again if the thread is executi...
Constants and Structures Associated with the Red-Black Tree Handler.
Thread Manipulation with the Priority-Based Scheduler.
void _Scheduler_EDF_Release_job(const Scheduler_Control *scheduler, Thread_Control *the_thread, Priority_Node *priority_node, uint64_t deadline, Thread_queue_Context *queue_context)
Releases a EDF job.
Scheduler_Context Base
Basic scheduler context.
Priority_Control priority
The thread priority currently used for this scheduler instance.
void _Scheduler_EDF_Cancel_job(const Scheduler_Control *scheduler, Thread_Control *the_thread, Priority_Node *priority_node, Thread_queue_Context *queue_context)
Cancels a job and removes the thread from the queue context.
void _Scheduler_EDF_Node_initialize(const Scheduler_Control *scheduler, Scheduler_Node *node, Thread_Control *the_thread, Priority_Control priority)
Initializes an EDF specific scheduler node of the_thread.
Priority_Control _Scheduler_EDF_Unmap_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Gets the unmapped priority map of the priority control.
Scheduler_Node Base
Basic scheduler node.
Priority_Control _Scheduler_EDF_Map_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Gets the mapped priority map of the priority control.
Scheduler node for per-thread data.
void _Scheduler_EDF_Schedule(const Scheduler_Control *scheduler, Thread_Control *the_thread)
Sets the heir thread to be the next ready thread in the rbtree ready queue.
Constants and Structures Associated with the Scheduler.
void _Scheduler_EDF_Unblock(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Performs an unblocking of the thread.
void _Scheduler_EDF_Yield(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Executes a thread yield for the thread.