Static thread context allocation including the TCB, an event group for joining if enabled, and an external statically allocated stack.
Example usage:
Public Member Functions | |
| Context (span< ULONG > stack_span) | |
| Context (const Context &)=delete | |
| Context & | operator= (const Context &)=delete |
| TX_THREAD & | tcb () |
|
inlineexplicit |
Constructs a thread context using an externally allocated stack.
stack_span.size() >= config::kMinimumStackSizeWords, and the backing storage must outlive this Context and any thread using it.| [in] | stack_span | Pre-allocated stack storage in ULONG words. |
|
inline |
Returns the underlying ThreadX TX_THREAD thread control block.
Intended for unit test and pw::Thread use only.
TX_THREAD TCB.