zpp
Zephyr C++20 Framework
|
A recursive mutex class. More...
#include <sys_mutex.hpp>
Public Member Functions | |
sys_mutex () noexcept | |
Default constructor. More... | |
constexpr auto | native_handle () noexcept -> native_pointer |
get the native zephyr mutex handle. More... | |
constexpr auto | native_handle () const noexcept -> native_const_pointer |
get the native zephyr mutex handle. More... | |
sys_mutex (const sys_mutex &)=delete | |
sys_mutex (sys_mutex &&)=delete | |
sys_mutex & | operator= (const sys_mutex &)=delete |
sys_mutex & | operator= (sys_mutex &&)=delete |
Public Member Functions inherited from zpp::sys_mutex_base< sys_mutex > | |
sys_mutex_base (const sys_mutex_base &)=delete | |
sys_mutex_base (sys_mutex_base &&)=delete | |
bool | lock () noexcept |
Lock the mutex. Wait for ever until it is locked. More... | |
bool | try_lock () noexcept |
Try locking the mutex without waiting. More... | |
bool | try_lock_for (const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
Try locking the mutex with a timeout. More... | |
bool | unlock () noexcept |
Unlock the mutex. More... | |
auto | native_handle () noexcept -> native_pointer |
get the native zephyr mutex handle. More... | |
auto | native_handle () const noexcept -> native_const_pointer |
get the native zephyr mutex handle. More... | |
sys_mutex_base & | operator= (const sys_mutex_base &)=delete |
sys_mutex_base & | operator= (sys_mutex_base &&)=delete |
Additional Inherited Members | |
Public Types inherited from zpp::sys_mutex_base< sys_mutex > | |
using | native_type = struct sys_mutex |
using | native_pointer = native_type * |
using | native_cont_pointer = native_type const * |
Protected Member Functions inherited from zpp::sys_mutex_base< sys_mutex > | |
constexpr | sys_mutex_base () noexcept=default |
Protected default contructor so only derived objects can be created. More... | |
A recursive mutex class.
Definition at line 126 of file sys_mutex.hpp.
|
inlinenoexcept |
Default constructor.
Definition at line 131 of file sys_mutex.hpp.
|
delete |
|
delete |
|
inlineconstexprnoexcept |
get the native zephyr mutex handle.
Definition at line 151 of file sys_mutex.hpp.
|
inlineconstexprnoexcept |
get the native zephyr mutex handle.
Definition at line 141 of file sys_mutex.hpp.