MOS Source Code
|
#include <scheduler.h>
Public Attributes | |
void(* | init )(scheduler_t *instance) |
Initialize the scheduler. | |
thread_t *(* | select_next )(scheduler_t *instance) |
Select the next thread to run, thread state lock should be locked. | |
void(* | add_thread )(scheduler_t *instance, thread_t *thread) |
Add a thread to the scheduler. | |
void(* | remove_thread )(scheduler_t *instance, thread_t *thread) |
Remove a thread from the scheduler. | |
Definition at line 10 of file scheduler.h.
void(* init) (scheduler_t *instance) |
Initialize the scheduler.
Definition at line 12 of file scheduler.h.
Referenced by MOS_SETUP(), and scheduler_init().
thread_t *(* select_next) (scheduler_t *instance) |
Select the next thread to run, thread state lock should be locked.
Definition at line 18 of file scheduler.h.
Referenced by reschedule().
void(* add_thread) (scheduler_t *instance, thread_t *thread) |
Add a thread to the scheduler.
Definition at line 19 of file scheduler.h.
Referenced by scheduler_add_thread(), and scheduler_wake_thread().
void(* remove_thread) (scheduler_t *instance, thread_t *thread) |
Remove a thread from the scheduler.
Definition at line 20 of file scheduler.h.
Referenced by scheduler_remove_thread().