RTEMS 6.1-rc1
|
This group contains the Simple Priority Scheduler implementation. More...
Files | |
file | schedulersimple.h |
This header file provides interfaces of the Simple Priority Scheduler which are used by the implementation and the Application Configuration. | |
file | schedulersimpleimpl.h |
This header file provides interfaces of the Simple Priority Scheduler which are only used by the implementation. | |
file | schedulersimple.c |
This source file contains the implementation of _Scheduler_simple_Initialize(). | |
file | schedulersimpleblock.c |
This source file contains the implementation of _Scheduler_simple_Block(). | |
file | schedulersimplechangepriority.c |
This source file contains the implementation of _Scheduler_simple_Update_priority(). | |
file | schedulersimpleschedule.c |
This source file contains the implementation of _Scheduler_simple_Schedule(). | |
file | schedulersimpleunblock.c |
This source file contains the implementation of _Scheduler_simple_Unblock(). | |
file | schedulersimpleyield.c |
This source file contains the implementation of _Scheduler_simple_Yield(). | |
Data Structures | |
struct | Scheduler_simple_Context |
Simple scheduler context. More... | |
Macros | |
#define | SCHEDULER_SIMPLE_MAXIMUM_PRIORITY 255 |
#define | SCHEDULER_SIMPLE_ENTRY_POINTS |
Functions | |
void | _Scheduler_simple_Initialize (const Scheduler_Control *scheduler) |
Initializes simple scheduler. More... | |
void | _Scheduler_simple_Schedule (const Scheduler_Control *scheduler, Thread_Control *the_thread) |
Schedules threads. More... | |
void | _Scheduler_simple_Yield (const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node) |
Performs the yield of a thread. More... | |
void | _Scheduler_simple_Block (const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node) |
Blocks the thread. More... | |
void | _Scheduler_simple_Unblock (const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node) |
Unblocks the thread. More... | |
void | _Scheduler_simple_Update_priority (const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node) |
Updates the priority of the node. More... | |
This group contains the Simple Priority Scheduler implementation.
#define SCHEDULER_SIMPLE_ENTRY_POINTS |
Entry points for Scheduler Simple
void _Scheduler_simple_Block | ( | const Scheduler_Control * | scheduler, |
Thread_Control * | the_thread, | ||
Scheduler_Node * | node | ||
) |
Blocks the thread.
scheduler | The scheduler instance. | |
[in,out] | the_thread | The thread to block. |
[in,out] | node | The thread's scheduler node. |
void _Scheduler_simple_Initialize | ( | const Scheduler_Control * | scheduler | ) |
Initializes simple scheduler.
This routine initializes the simple scheduler.
scheduler | The scheduler to be initialized. |
void _Scheduler_simple_Schedule | ( | const Scheduler_Control * | scheduler, |
Thread_Control * | the_thread | ||
) |
Schedules threads.
This routine sets the heir thread to be the next ready thread on the ready queue by getting the first node in the scheduler information.
scheduler | The scheduler instance. |
the_thread | causing the scheduling operation. |
void _Scheduler_simple_Unblock | ( | const Scheduler_Control * | scheduler, |
Thread_Control * | the_thread, | ||
Scheduler_Node * | node | ||
) |
Unblocks the thread.
scheduler | The scheduler instance. | |
[in,out] | the_thread | The thread to unblock. |
[in,out] | node | The thread's scheduler node. |
void _Scheduler_simple_Update_priority | ( | const Scheduler_Control * | scheduler, |
Thread_Control * | the_thread, | ||
Scheduler_Node * | node | ||
) |
Updates the priority of the node.
scheduler | The scheduler instance. |
the_thread | The thread for the operation. |
node | The thread's scheduler node. |
void _Scheduler_simple_Yield | ( | const Scheduler_Control * | scheduler, |
Thread_Control * | the_thread, | ||
Scheduler_Node * | node | ||
) |
Performs the yield of a thread.
scheduler | The scheduler instance. | |
[in,out] | the_thread | The thread that performed the yield operation. |
node | The scheduler node of the_thread. |