zpp
Zephyr C++20 Framework
zpp::thread_stack Class Reference

thread_stack holds the stack and thread control block memory More...

#include <thread_stack.hpp>

Public Member Functions

constexpr thread_stack (const thread_stack &) noexcept=default
 
constexpr thread_stackoperator= (const thread_stack &) noexcept=default
 
constexpr thread_stack (k_thread_stack_t *data, size_t size) noexcept
 
constexpr auto size () const noexcept
 
constexpr auto data () const noexcept
 
 thread_stack ()=delete
 

Detailed Description

thread_stack holds the stack and thread control block memory

Parameters
StackSizedefines the stacksize in bytes

Definition at line 21 of file thread_stack.hpp.

Constructor & Destructor Documentation

◆ thread_stack() [1/3]

constexpr zpp::thread_stack::thread_stack ( const thread_stack )
constexprdefaultnoexcept

◆ thread_stack() [2/3]

constexpr zpp::thread_stack::thread_stack ( k_thread_stack_t *  data,
size_t  size 
)
inlineconstexprnoexcept

Definition at line 26 of file thread_stack.hpp.

27  : m_data(data)
28  , m_size(size)
29  {
30  __ASSERT_NO_MSG(m_data != nullptr);
31  }
constexpr auto data() const noexcept
constexpr auto size() const noexcept

◆ thread_stack() [3/3]

zpp::thread_stack::thread_stack ( )
delete

Member Function Documentation

◆ data()

constexpr auto zpp::thread_stack::data ( ) const
inlineconstexprnoexcept

Definition at line 38 of file thread_stack.hpp.

39  {
40  return m_data;
41  }

◆ operator=()

constexpr thread_stack& zpp::thread_stack::operator= ( const thread_stack )
constexprdefaultnoexcept

◆ size()

constexpr auto zpp::thread_stack::size ( ) const
inlineconstexprnoexcept

Definition at line 33 of file thread_stack.hpp.

34  {
35  return m_size;
36  }

The documentation for this class was generated from the following file: