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.
Definition: scheduleredf.c:24
uint64_t Priority_Control
The thread priority control.
Definition: priority.h:70
void _Scheduler_EDF_Update_priority(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Updates the priority of the scheduler node.
Definition: scheduleredfchangepriority.c:23
Scheduler context.
Definition: scheduler.h:252
Scheduler node specialization for EDF schedulers.
Definition: scheduleredf.h:90
Thread queue context for the thread queue methods.
Definition: threadq.h:198
The priority node to build up a priority aggregation.
Definition: priority.h:98
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...
Definition: scheduleredfblock.c:24
Thread Manipulation with the Priority-Based Scheduler.
Red-black tree node.
Definition: rbtree.h:55
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.
Definition: scheduleredfreleasejob.c:40
Scheduler_Context Base
Basic scheduler context.
Definition: scheduleredf.h:79
Constants and Structures Associated with the Red-Black Tree Handler.
Priority_Control priority
The thread priority currently used for this scheduler instance.
Definition: scheduleredf.h:104
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.
Definition: scheduleredfreleasejob.c:77
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.
Definition: scheduleredfnodeinit.c:23
Priority_Control _Scheduler_EDF_Unmap_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Gets the unmapped priority map of the priority control.
Definition: scheduleredfreleasejob.c:32
RBTree_Node Node
Definition: scheduleredf.h:99
Scheduler_Node Base
Basic scheduler node.
Definition: scheduleredf.h:94
Priority_Control _Scheduler_EDF_Map_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Gets the mapped priority map of the priority control.
Definition: scheduleredfreleasejob.c:24
Definition: scheduleredf.h:75
Scheduler control.
Definition: scheduler.h:269
Scheduler node for per-thread data.
Definition: schedulernode.h:79
RBTree_Control Ready
Definition: scheduleredf.h:84
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.
Definition: scheduleredfschedule.c:23
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.
Definition: scheduleredfunblock.c:26
void _Scheduler_EDF_Yield(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Executes a thread yield for the thread.
Definition: scheduleredfyield.c:24