Thread creation attributes.  
 More...
#include <thread_attr.hpp>
Thread creation attributes. 
Definition at line 35 of file thread_attr.hpp.
◆ thread_attr() [1/3]
◆ thread_attr() [2/3]
◆ thread_attr() [3/3]
template<class ... T_Args> 
  
  | 
        
          | constexpr zpp::thread_attr::thread_attr | ( | T_Args &&... | args | ) |  |  | inlineexplicitconstexprnoexcept | 
 
Constructor taking a variable number of attributes. 
Contructor that initializes the thread creation attributes based on the args arguments being passed. The order of the arguments does not matter. Arguments must be of a Type that has a coresponding set(Type) function.
- Parameters
- 
  
    | args | The attributes to set. |  
 
Definition at line 53 of file thread_attr.hpp.
   55     set(std::forward<T_Args>(args)...);
 
constexpr void set() const noexcept
 
References set().
 
 
◆ native_delay()
  
  | 
        
          | constexpr auto zpp::thread_attr::native_delay | ( |  | ) | const |  | inlineconstexprnoexcept | 
 
get the Zephyr native delay value 
- Returns
- The native delay value 
Definition at line 194 of file thread_attr.hpp.
 
 
◆ native_options()
  
  | 
        
          | constexpr auto zpp::thread_attr::native_options | ( |  | ) | const |  | inlineconstexprnoexcept | 
 
get the Zephyr native options value 
- Returns
- The native options value 
Definition at line 214 of file thread_attr.hpp.
 
 
◆ native_prio()
  
  | 
        
          | constexpr auto zpp::thread_attr::native_prio | ( |  | ) | const |  | inlineconstexprnoexcept | 
 
 
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set() [1/10]
  
  | 
        
          | constexpr void zpp::thread_attr::set | ( |  | ) | const |  | inlineconstexprnoexcept | 
 
 
◆ set() [2/10]
template<class T_Rep , class T_Period > 
  
  | 
        
          | constexpr void zpp::thread_attr::set | ( | const thread_start_delay< T_Rep, T_Period > & | delay | ) |  |  | inlineconstexprnoexcept | 
 
Set the thread start delay. 
- Parameters
- 
  
    | delay | The thread start delay |  
 
Definition at line 86 of file thread_attr.hpp.
   88     using namespace std::chrono;
 
   92     if (delay.t <= decltype(delay.t)::zero()) {
 
constexpr k_ticks_t to_tick(const std::chrono::duration< T_Rep, T_Period > &d) noexcept
convert a duration to tick
 
References zpp::to_tick().
 
 
◆ set() [3/10]
template<class T_FirstArg , class ... T_Args> 
  
  | 
        
          | constexpr void zpp::thread_attr::set | ( | T_FirstArg && | first, |  
          |  |  | T_Args &&... | rest |  
          |  | ) |  |  |  | inlineconstexprnoexcept | 
 
 
◆ set() [4/10]
Set the thread essential flag. 
- Parameters
- 
  
    | v | The thread essential flag |  
 
Definition at line 120 of file thread_attr.hpp.
  123       m_options |= K_ESSENTIAL;
 
  125       m_options &= ~K_ESSENTIAL;
 
 
References zpp::yes.
 
 
◆ set() [5/10]
Set the thread FP regs flag. 
- Parameters
- 
  
  
Definition at line 162 of file thread_attr.hpp.
  166       m_options |= K_FP_REGS;
 
  168       m_options &= ~K_FP_REGS;
 
 
References zpp::yes.
 
 
◆ set() [6/10]
Set the thread inherit permisions flag. 
- Parameters
- 
  
    | v | The thread inherit permissions flag |  
 
Definition at line 148 of file thread_attr.hpp.
  151       m_options |= K_INHERIT_PERMS;
 
  153       m_options &= ~K_INHERIT_PERMS;
 
 
References zpp::yes.
 
 
◆ set() [7/10]
  
  | 
        
          | constexpr void zpp::thread_attr::set | ( | thread_prio | prio | ) |  |  | inlineconstexprnoexcept | 
 
 
◆ set() [8/10]
Set the thread SSE regs flag. 
- Parameters
- 
  
    | v | The thread SSE regs flag |  
 
Definition at line 178 of file thread_attr.hpp.
  182       m_options |= K_SSE_REGS;
 
  184       m_options &= ~K_SSE_REGS;
 
 
References zpp::yes.
 
 
◆ set() [9/10]
Set the thread start suspended flag. 
- Parameters
- 
  
    | v | The thread start suspended flag |  
 
Definition at line 104 of file thread_attr.hpp.
  109       if (K_TIMEOUT_EQ(m_delay, K_FOREVER)) {
 
 
References zpp::yes.
 
 
◆ set() [10/10]
Set the thread user flag. 
- Parameters
- 
  
  
Definition at line 134 of file thread_attr.hpp.
  139       m_options &= ~K_USER;
 
 
References zpp::yes.
 
 
The documentation for this class was generated from the following file: