![]() |
MOS Source Code
|
#include <scheduler.hpp>
Public Attributes | |
| void(* | init )(scheduler_t *instance) |
| Initialize the scheduler. | |
| Thread *(* | select_next )(scheduler_t *instance) |
| Select the next thread to run, thread state lock should be locked. | |
| void(* | add_thread )(scheduler_t *instance, Thread *thread) |
| Add a thread to the scheduler. | |
| void(* | remove_thread )(scheduler_t *instance, Thread *thread) |
| Remove a thread from the scheduler. | |
Definition at line 10 of file scheduler.hpp.
| void(* init) (scheduler_t *instance) |
Initialize the scheduler.
Definition at line 12 of file scheduler.hpp.
| Thread *(* select_next) (scheduler_t *instance) |
Select the next thread to run, thread state lock should be locked.
Definition at line 18 of file scheduler.hpp.
| void(* add_thread) (scheduler_t *instance, Thread *thread) |
Add a thread to the scheduler.
Definition at line 19 of file scheduler.hpp.
| void(* remove_thread) (scheduler_t *instance, Thread *thread) |
Remove a thread from the scheduler.
Definition at line 20 of file scheduler.hpp.