|
constexpr | pw::ThreadAttrs::ThreadAttrs () |
| Initializes attributes to their backend-defined defaults.
|
|
constexpr | pw::ThreadAttrs::ThreadAttrs (const ThreadAttrs &)=default |
| Thread attributes can be copied to share properties between threads.
|
|
constexpr ThreadAttrs & | pw::ThreadAttrs::operator= (const ThreadAttrs &)=default |
|
constexpr const char * | pw::ThreadAttrs::name () const |
| Name hint as a null-terminated string. Never null.
|
|
constexpr ThreadAttrs & | pw::ThreadAttrs::set_name (const char *name) |
|
constexpr ThreadAttrs & | pw::ThreadAttrs::set_name (std::nullptr_t)=delete |
|
constexpr ThreadPriority | pw::ThreadAttrs::priority () const |
|
constexpr ThreadAttrs & | pw::ThreadAttrs::set_priority (ThreadPriority priority) |
| Sets a thread priority hint.
|
|
constexpr auto | pw::ThreadAttrs::native_stack () const |
|
constexpr auto | pw::ThreadAttrs::native_stack_pointer () const |
|
constexpr auto | pw::ThreadAttrs::native_stack_size () const |
|
constexpr size_t | pw::ThreadAttrs::stack_size_bytes () const |
| Returns the size of the stack in bytes.
|
|
constexpr ThreadAttrs & | pw::ThreadAttrs::set_stack_size_bytes (size_t stack_size_bytes) |
|
template<size_t kStackSizeBytes> |
constexpr ThreadAttrs & | pw::ThreadAttrs::set_stack (ThreadStack< kStackSizeBytes > &stack) |
|
constexpr ThreadAttrs & | pw::ThreadAttrs::clear_stack () |
| Clears a previous call to set_stack .
|
|
constexpr bool | pw::ThreadAttrs::has_external_stack () const |
|
| pw::ThreadChecker::ThreadChecker (Thread::id id) |
|
void | pw::ThreadChecker::lock () |
|
void | pw::ThreadChecker::unlock () |
|
void | pw::LazyInitThreadChecker::lock () |
|
void | pw::LazyInitThreadChecker::unlock () |
|
| pw::ThreadContext< kStackSizeBytes >::ThreadContext (const ThreadContext &)=delete |
|
ThreadContext & | pw::ThreadContext< kStackSizeBytes >::operator= (const ThreadContext &)=delete |
|
constexpr thread::backend::NativeContextWithStack< kStackSizeBytes > & | pw::ThreadContext< kStackSizeBytes >::native () |
|
| pw::ThreadContext< kExternallyAllocatedThreadStack >::ThreadContext (const ThreadContext &)=delete |
|
ThreadContext & | pw::ThreadContext< kExternallyAllocatedThreadStack >::operator= (const ThreadContext &)=delete |
|
constexpr thread::backend::NativeContext & | pw::ThreadContext< kExternallyAllocatedThreadStack >::native () |
|
| pw::ThreadContextFor< kAttributes >::ThreadContextFor (const ThreadContextFor &)=delete |
|
ThreadContextFor & | pw::ThreadContextFor< kAttributes >::operator= (const ThreadContextFor &)=delete |
|
constexpr auto & | pw::ThreadContextFor< kAttributes >::native () |
|
template<typename T > |
PW_CONSTEVAL std::array< T, kNamedPriorities > | pw::thread::internal::PriorityOffsets (T highest) |
|
constexpr bool | pw::thread::internal::operator>= (AbstractLevel rhs) const |
|
constexpr AbstractLevel | pw::thread::internal::operator+ (U amount) const |
|
constexpr AbstractLevel | pw::thread::internal::operator- (U amount) const |
|
static constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::IsSupported () |
| True if the pw_thread backend supports more than one priority level.
|
|
constexpr | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Priority () |
| Constructs a priority at the backend-specified default level.
|
|
constexpr | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Priority (const Priority &)=default |
|
constexpr Priority & | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator= (const Priority &)=default |
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Lowest () |
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::VeryLow () |
| Priority higher than Lowest , but lower than Low , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Low () |
| Priority higher than VeryLow , but lower than MediumLow , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::MediumLow () |
| Priority higher than Low , but lower than Medium , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Medium () |
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::MediumHigh () |
| Priority higher than Medium , but lower than High , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::High () |
| Priority higher than MediumHigh , but lower than VeryHigh , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::VeryHigh () |
| Priority higher than High , but lower than Highest , if possible.
|
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Highest () |
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::Default () |
| Returns a priority at the backend-specified default level.
|
|
constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::NextHigher (Priority maximum=Highest()) const |
|
constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::NextLower (Priority minimum=Lowest()) const |
|
constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::NextLowerClamped (Priority minimum=Lowest()) const |
| Returns the next lower priority, down to the provided maximum.
|
|
constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::NextHigherClamped (Priority maximum=Highest()) const |
| Returns the next higher priority, up to the provided minimum.
|
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator== (Priority rhs) const |
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator!= (Priority rhs) const |
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator< (Priority rhs) const |
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator<= (Priority rhs) const |
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator> (Priority rhs) const |
|
constexpr bool | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::operator>= (Priority rhs) const |
|
constexpr native_type | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::native () const |
|
static constexpr Priority | pw::thread::internal::Priority< T, kLowestPriority, kHighestPriority, kDefaultPriority >::FromNative (native_type priority) |
|
template<typename T > |
constexpr auto | pw::internal::ThreadStackSpan (T *pointer, size_t size) |
|
constexpr auto | pw::internal::NativeStackSizeBytes (size_t size) |
|
constexpr native | pw::ThreadStack< kStackSizeBytes >::native_pointer () |
|
constexpr size_t | pw::ThreadStack< kStackSizeBytes >::native_size () const |
|
| pw::thread::test::TestThreadContext::TestThreadContext (const TestThreadContext &)=delete |
|
TestThreadContext & | pw::thread::test::TestThreadContext::operator= (const TestThreadContext &)=delete |
|
const Options & | pw::thread::test::TestThreadContext::options () const |
|
| pw::thread::Thread::Thread () |
|
| pw::thread::Thread::Thread (const Options &options, Function< void()> &&entry) |
|
template<const ThreadAttrs & kAttributes> |
| pw::thread::Thread::Thread (ThreadContextFor< kAttributes > &context, Function< void()> &&entry) |
|
template<size_t kStackSizeHintBytes> |
| pw::thread::Thread::Thread (ThreadContext< kStackSizeHintBytes > &context, const ThreadAttrs &attributes, Function< void()> &&entry) |
|
| pw::thread::Thread::Thread (ThreadContext<> &context, const ThreadAttrs &attributes, Function< void()> &&entry) |
|
Thread & | pw::thread::Thread::operator= (Thread &&other) |
|
| pw::thread::Thread::~Thread () |
|
| pw::thread::Thread::Thread (const Thread &)=delete |
|
| pw::thread::Thread::Thread (Thread &&)=delete |
|
Thread & | pw::thread::Thread::operator= (const Thread &)=delete |
|
id | pw::thread::Thread::get_id () const |
|
bool | pw::thread::Thread::joinable () const |
|
template<typename... , bool kJoiningEnabled = false> |
void | pw::thread::Thread::join () |
|
void | pw::thread::Thread::detach () |
|
void | pw::thread::Thread::swap (Thread &other) |
| Exchanges the underlying handles of two thread objects.
|
|
native_handle_type | pw::thread::Thread::native_handle () |
|