MOS Source Code
Loading...
Searching...
No Matches
scheduler_ops_t Struct Reference

#include <scheduler.h>

+ Collaboration diagram for scheduler_ops_t:

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.
 

Detailed Description

Definition at line 10 of file scheduler.h.

Member Data Documentation

◆ init

void(* init) (scheduler_t *instance)

Initialize the scheduler.

Definition at line 12 of file scheduler.h.

Referenced by MOS_SETUP(), and scheduler_init().

◆ select_next

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().

◆ add_thread

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().

◆ remove_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().


The documentation for this struct was generated from the following file: