Mark3 Realtime Kernel
|
The CoScheduler class. This class implements the coroutine scheduler. Similar to the Mark3 thread scheduler, the highest-priority active object is scheduled / returned for execution. If no active co-routines are available to be scheduled, then the scheduler returns nullptr. More...
#include <cosched.h>
Static Public Member Functions | |
static void | Init () |
Init Initialize the coroutine scheduler prior to use. Must be called prior to using any other functions in the coroutine scheduler. More... | |
static CoPrioMap * | GetPrioMap () |
GetPrioMap Get the pointer to the priority map object used by the scheduler. More... | |
static CoList * | GetStopList () |
GetStopList Get the pointer to the coroutine list managing initialized coroutines that are not awaiting execution. More... | |
static CoList * | GetCoList (PORT_PRIO_TYPE uPriority_) |
GetCoList Retrieve the coroutine list associated with a given priority. More... | |
static Coroutine * | Schedule () |
Schedule Determine what coroutine (if any) is the next to be executed. More... | |
Static Private Attributes | |
static CoList | m_aclPriorities [PORT_COROUTINE_PRIORITIES] |
static CoList | m_clStopList |
static CoPrioMap | m_clPrioMap |
The CoScheduler class. This class implements the coroutine scheduler. Similar to the Mark3 thread scheduler, the highest-priority active object is scheduled / returned for execution. If no active co-routines are available to be scheduled, then the scheduler returns nullptr.
|
static |
GetCoList Retrieve the coroutine list associated with a given priority.
uPriority_ | Priority to get the coroutine list of. |
Definition at line 51 of file cosched.cpp.
|
static |
GetPrioMap Get the pointer to the priority map object used by the scheduler.
Definition at line 39 of file cosched.cpp.
|
static |
GetStopList Get the pointer to the coroutine list managing initialized coroutines that are not awaiting execution.
Definition at line 45 of file cosched.cpp.
|
static |
Init Initialize the coroutine scheduler prior to use. Must be called prior to using any other functions in the coroutine scheduler.
Definition at line 29 of file cosched.cpp.
|
static |
Schedule Determine what coroutine (if any) is the next to be executed.
Definition at line 60 of file cosched.cpp.