µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::thread::context Class Reference

Thread context. More...

#include <cmsis-plus/rtos/os.h>

Public Member Functions

Constructors & Destructor
 context ()
 Construct a thread context object instance.
 
 ~context ()=default
 Destruct the context object instance.
 
Public Member Functions
thread::stackstack (void)
 Get the associated stack.
 

Detailed Description

Thread context.

The thread context includes the stack object and port specific structures.

On some ports (like the Cortex-M) the thread context is stored on the stack and a pointer to the current location is kept in the context object instance.

On other ports (like the synthetic POSIX port), the makecontext() functions create and manage large ucontex_t structures stored in the context object instance.

Definition at line 653 of file os-thread.h.

Constructor & Destructor Documentation

◆ context()

os::rtos::thread::context::context ( )
inline

Construct a thread context object instance.

Warning
Cannot be invoked from Interrupt Service Routines.

Definition at line 2234 of file os-thread.h.

◆ ~context()

os::rtos::thread::context::~context ( )
default

Destruct the context object instance.

Member Function Documentation

◆ stack()

class thread::stack & os::rtos::thread::context::stack ( void  )
inline

Get the associated stack.

Parameters
None.
Returns
Reference to stack object.
Note
Can be invoked from Interrupt Service Routines.

Definition at line 2243 of file os-thread.h.


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