zpp
Zephyr C++20 Framework
|
Thead ID. More...
#include <thread_id.hpp>
Public Member Functions | |
thread_id (const thread_id &) noexcept=default | |
thread_id (thread_id &&) noexcept=default | |
thread_id & | operator= (const thread_id &) noexcept=default |
thread_id & | operator= (thread_id &&) noexcept=default |
constexpr | thread_id () noexcept |
Default constructor inializing ID to K_ANY. More... | |
constexpr | thread_id (k_tid_t tid) noexcept |
Constructor inializing ID to tid. More... | |
constexpr | operator bool () const noexcept |
test if the ID is valid More... | |
constexpr auto | native_handle () const noexcept |
Get the Zephyr native ID value. More... | |
Static Public Member Functions | |
constexpr static thread_id | any () noexcept |
Create an ID with value K_ANY. More... | |
Thead ID.
Definition at line 18 of file thread_id.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlineconstexprnoexcept |
Default constructor inializing ID to K_ANY.
Definition at line 28 of file thread_id.hpp.
Referenced by any().
|
inlineexplicitconstexprnoexcept |
Constructor inializing ID to tid.
tid | The ID to use for inialization |
Definition at line 37 of file thread_id.hpp.
|
inlinestaticconstexprnoexcept |
Create an ID with value K_ANY.
Definition at line 57 of file thread_id.hpp.
References thread_id().
Referenced by zpp::thread::thread(), zpp::thread::abort(), zpp::thread::detach(), and zpp::thread::operator=().
|
inlineconstexprnoexcept |
Get the Zephyr native ID value.
Definition at line 67 of file thread_id.hpp.
|
inlineexplicitconstexprnoexcept |
test if the ID is valid
Definition at line 47 of file thread_id.hpp.