7 #ifndef ZPP_INCLUDE_ZPP_THREAD_ID_HPP 
    8 #define ZPP_INCLUDE_ZPP_THREAD_ID_HPP 
   10 #include <zephyr/kernel.h> 
   11 #include <zephyr/sys/__assert.h> 
   47   constexpr 
explicit operator bool() const noexcept
 
   49     return m_tid != K_ANY;
 
   72   k_tid_t m_tid { K_ANY };
 
   86   return (lhs.native_handle() == rhs.native_handle());
 
  100   return (lhs.native_handle() != rhs.native_handle());
 
  111   printk(
"%p", 
id.native_handle());
 
thread_id(thread_id &&) noexcept=default
constexpr static thread_id any() noexcept
Create an ID with value K_ANY.
constexpr thread_id() noexcept
Default constructor inializing ID to K_ANY.
thread_id(const thread_id &) noexcept=default
constexpr thread_id(k_tid_t tid) noexcept
Constructor inializing ID to tid.
constexpr auto native_handle() const noexcept
Get the Zephyr native ID value.
constexpr bool operator==(const result< T_Ok, T_Error > &lhs, bool rhs) noexcept
compare result with bool
void print_arg(thread_id id) noexcept
Helper to output the ID with zpp::print("{}", id)
constexpr bool operator!=(const result< T_Ok, T_Error > &lhs, bool rhs) noexcept
compare result with bool