19#include "pw_thread/attrs.h"
20#include "pw_thread/stack.h"
21#include "pw_thread_backend/context.h"
25inline constexpr size_t kExternallyAllocatedThreadStack =
26 std::numeric_limits<size_t>::max();
38template <
size_t kStackSizeBytes = kExternallyAllocatedThreadStack>
46 constexpr thread::backend::NativeContextWithStack<kStackSizeBytes>& native() {
47 return native_context_;
51 thread::backend::NativeContextWithStack<kStackSizeBytes> native_context_;
63 constexpr thread::backend::NativeContext& native() {
return native_context_; }
66 thread::backend::NativeContext native_context_;
72template <const ThreadAttrs& kAttributes>
80 constexpr auto& native() {
return context_.native(); }
84 ? kExternallyAllocatedThreadStack
85 : kAttributes.stack_size_bytes()>
Provides basic helpers for reading and writing UTF-8 encoded strings.
Definition: alignment.h:27