Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. OS abstraction layers
  5. pw_thread
  6. OS abstraction layers
  7. Backends
  8. Eclipse ThreadX
  9. pw_thread_threadx
  10. pw::thread::threadx::ContextWithStack< kStackSizeWords > Class Template Reference
pw::thread::threadx::ContextWithStack< kStackSizeWords > Class Template Referencefinal

Overview

template<size_t kStackSizeWords = config::kDefaultStackSizeWords>
class pw::thread::threadx::ContextWithStack< kStackSizeWords >

Static thread context allocation including the stack along with the Context.

Example usage:

example_thread_context;
void StartExampleThread() {
.set_name("static_example_thread")
.set_priority(kFooPriority)
.set_context(example_thread_context),
example_thread_function)
.detach();
}
Definition: context.h:144
Definition: options.h:54
::pw::thread::Thread Thread
Definition: thread.h:225
Template Parameters
kStackSizeWordsStack size in ULONG words. Must be at least config::kMinimumStackSizeWords.
Inheritance diagram for pw::thread::threadx::ContextWithStack< kStackSizeWords >:
pw::thread::threadx::Context

Public Member Functions

constexpr ContextWithStack ()
 Constructs a thread context with an internally allocated stack.
 
- Public Member Functions inherited from pw::thread::threadx::Context
 Context (span< ULONG > stack_span)
 
 Context (const Context &)=delete
 
Context & operator= (const Context &)=delete
 
TX_THREAD & tcb ()
 

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