C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
OS_core_state_t Struct Reference

Structure holding current scheduling state of CPU. More...

Data Fields

Thread_t thread_prev
 previously running thread ID
 
Thread_t thread_current
 ID of thread which is currently executed.
 
Thread_t thread_next
 ID of thread which will be scheduled once thread switch occurs.
 

Detailed Description

Structure holding current scheduling state of CPU.

This structure holds complete state required to perform thread scheduling. It is private to CPU. Kernel should allocate as many of these as there are CPUs.

Field Documentation

◆ thread_current

Thread_t OS_core_state_t::thread_current

ID of thread which is currently executed.

◆ thread_next

Thread_t OS_core_state_t::thread_next

ID of thread which will be scheduled once thread switch occurs.

◆ thread_prev

Thread_t OS_core_state_t::thread_prev

previously running thread ID