19#include "pw_thread/attrs.h"
20#include "pw_thread/stack.h"
21#include "pw_thread_backend/context.h"
27inline constexpr size_t kExternallyAllocatedThreadStack =
28 std::numeric_limits<size_t>::max();
44template <
size_t kStackSizeBytes = kExternallyAllocatedThreadStack>
52 constexpr thread::backend::NativeContextWithStack<kStackSizeBytes>& native() {
53 return native_context_;
57 thread::backend::NativeContextWithStack<kStackSizeBytes> native_context_;
69 constexpr thread::backend::NativeContext& native() {
return native_context_; }
72 thread::backend::NativeContext native_context_;
78template <const ThreadAttrs& kAttributes>
86 constexpr auto& native() {
return context_.native(); }
90 ? kExternallyAllocatedThreadStack
91 : kAttributes.stack_size_bytes()>
The Pigweed namespace.
Definition: alignment.h:27