zpp
Zephyr C++20 Framework
|
A recursive mutex class. More...
#include <mutex.hpp>
Public Member Functions | |
mutex () noexcept | |
Default contructor. 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... | |
mutex (const mutex &)=delete | |
mutex (mutex &&)=delete | |
mutex & | operator= (const mutex &)=delete |
mutex & | operator= (mutex &&)=delete |
Public Member Functions inherited from zpp::mutex_base< mutex > | |
mutex_base (const mutex_base &)=delete | |
mutex_base (mutex_base &&)=delete | |
auto | lock () noexcept |
Lock the mutex. Wait forever until it is locked. More... | |
auto | try_lock () noexcept |
Try locking the mutex without waiting. More... | |
auto | try_lock_for (const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
Try locking the mutex with a timeout. More... | |
auto | 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... | |
mutex_base & | operator= (const mutex_base &)=delete |
mutex_base & | operator= (mutex_base &&)=delete |
Additional Inherited Members | |
Public Types inherited from zpp::mutex_base< mutex > | |
using | native_type = struct k_mutex |
using | native_pointer = native_type * |
using | native_const_pointer = native_type const * |
Protected Member Functions inherited from zpp::mutex_base< mutex > | |
constexpr | mutex_base () noexcept |
Protected default constructor so only derived objects can be created. More... | |
|
inlinenoexcept |
|
delete |
|
delete |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |