A futex class referencing another futex object.
More...
#include <futex.hpp>
A futex class referencing another futex object.
Definition at line 170 of file futex.hpp.
◆ futex_ref() [1/3]
|
inlineexplicitconstexprnoexcept |
Construct a futex using a native k_futex*.
- Parameters
-
f | The k_futex to use. f must already be initialized and will not be freed. |
Definition at line 178 of file futex.hpp.
181 __ASSERT_NO_MSG(m_futex_ptr !=
nullptr);
◆ futex_ref() [2/3]
template<typename T_Futex >
constexpr zpp::futex_ref::futex_ref |
( |
T_Futex & |
f | ) |
|
|
inlineexplicitconstexprnoexcept |
Construct a futex using another futex object.
- Parameters
-
f | The futex to use. f must already be initialized and will not be freed. |
Definition at line 191 of file futex.hpp.
192 : m_futex_ptr(f.native_handle())
194 __ASSERT_NO_MSG(m_futex_ptr !=
nullptr);
◆ futex_ref() [3/3]
zpp::futex_ref::futex_ref |
( |
| ) |
|
|
delete |
◆ native_handle() [1/2]
get the native zephyr futex handle.
- Returns
- A pointer to the zephyr k_futex.
Definition at line 243 of file futex.hpp.
◆ native_handle() [2/2]
get the native zephyr futex handle.
- Returns
- A pointer to the zephyr k_futex.
Definition at line 233 of file futex.hpp.
Referenced by operator=().
◆ operator=() [1/2]
copy operator
- Parameters
-
f | The k_futex to use. f must already be initialized and will not be freed. |
- Returns
- Reference to this object
Definition at line 205 of file futex.hpp.
208 __ASSERT_NO_MSG(m_futex_ptr !=
nullptr);
◆ operator=() [2/2]
template<typename T_Futex >
constexpr futex_ref& zpp::futex_ref::operator= |
( |
T_Futex & |
f | ) |
|
|
inlineconstexprnoexcept |
copy operator
- Parameters
-
f | The futex object to use. f must already be initialized and will not be freed. |
- Returns
- Reference to this object
Definition at line 221 of file futex.hpp.
223 m_futex_ptr = f.native_handle();
224 __ASSERT_NO_MSG(m_futex_ptr !=
nullptr);
References native_handle().
The documentation for this class was generated from the following file: