| 
    zpp
    
   Zephyr C++20 Framework 
   | 
 
zpp::unique_lock using zpp::mutex as a lock. More...
#include <unique_lock.hpp>
Public Types | |
| using | native_pointer = T_Mutex::native_pointer | 
| using | native_const_pointer = T_Mutex::native_const_pointer | 
Public Member Functions | |
| unique_lock () noexcept=default | |
| Try locking the mutex without waiting.  More... | |
| unique_lock (T_Mutex &lock) noexcept | |
| Try locking the mutex without waiting.  More... | |
| unique_lock (unique_lock &&src) noexcept | |
| Try locking the mutex without waiting.  More... | |
| unique_lock & | operator= (unique_lock &&src) noexcept | 
| Try locking the mutex without waiting.  More... | |
| ~unique_lock () noexcept | |
| Try locking the mutex without waiting.  More... | |
| auto | lock () noexcept | 
| Lock the mutex. Wait for ever until it is locked.  More... | |
| auto | try_lock () noexcept | 
| Try locking the mutex without waiting.  More... | |
| template<class T_Rep , class T_Period > | |
| 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... | |
| constexpr T_Mutex * | release () noexcept | 
| Try locking the mutex without waiting.  More... | |
| constexpr bool | owns_lock () const noexcept | 
| Try locking the mutex without waiting.  More... | |
| constexpr | operator bool () const noexcept | 
| Try locking the mutex without waiting.  More... | |
| constexpr T_Mutex * | mutex () const noexcept | 
| Try locking the mutex without waiting.  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... | |
| unique_lock (const unique_lock &)=delete | |
| unique_lock & | operator= (const unique_lock &)=delete | 
zpp::unique_lock using zpp::mutex as a lock.
Definition at line 24 of file unique_lock.hpp.
| using zpp::unique_lock< T_Mutex >::native_const_pointer = T_Mutex::native_const_pointer | 
Definition at line 27 of file unique_lock.hpp.
| using zpp::unique_lock< T_Mutex >::native_pointer = T_Mutex::native_pointer | 
Definition at line 26 of file unique_lock.hpp.
      
  | 
  defaultnoexcept | 
Try locking the mutex without waiting.
      
  | 
  inlineexplicitnoexcept | 
Try locking the mutex without waiting.
Definition at line 37 of file unique_lock.hpp.
      
  | 
  inlinenoexcept | 
Try locking the mutex without waiting.
Definition at line 49 of file unique_lock.hpp.
      
  | 
  inlinenoexcept | 
Try locking the mutex without waiting.
Definition at line 79 of file unique_lock.hpp.
      
  | 
  delete | 
      
  | 
  inlinenoexcept | 
Lock the mutex. Wait for ever until it is locked.
Definition at line 92 of file unique_lock.hpp.
References zpp::result< T_Ok, T_Error >::assign_error(), zpp::k_deadlk, and zpp::k_inval.
      
  | 
  inlineconstexprnoexcept | 
Try locking the mutex without waiting.
Definition at line 203 of file unique_lock.hpp.
      
  | 
  inlineconstexprnoexcept | 
get the native zephyr mutex handle.
Definition at line 226 of file unique_lock.hpp.
      
  | 
  inlineconstexprnoexcept | 
get the native zephyr mutex handle.
Definition at line 213 of file unique_lock.hpp.
      
  | 
  inlineexplicitconstexprnoexcept | 
Try locking the mutex without waiting.
Definition at line 195 of file unique_lock.hpp.
References zpp::unique_lock< T_Mutex >::owns_lock().
      
  | 
  delete | 
      
  | 
  inlinenoexcept | 
Try locking the mutex without waiting.
Definition at line 60 of file unique_lock.hpp.
      
  | 
  inlineconstexprnoexcept | 
Try locking the mutex without waiting.
Definition at line 187 of file unique_lock.hpp.
Referenced by zpp::unique_lock< T_Mutex >::operator bool().
      
  | 
  inlineconstexprnoexcept | 
Try locking the mutex without waiting.
Definition at line 176 of file unique_lock.hpp.
      
  | 
  inlinenoexcept | 
Try locking the mutex without waiting.
Definition at line 113 of file unique_lock.hpp.
References zpp::result< T_Ok, T_Error >::assign_error(), zpp::k_deadlk, and zpp::k_inval.
      
  | 
  inlinenoexcept | 
Try locking the mutex with a timeout.
| timeout | The time to wait before returning | 
Definition at line 138 of file unique_lock.hpp.
References zpp::result< T_Ok, T_Error >::assign_error(), zpp::k_deadlk, and zpp::k_inval.
      
  | 
  inlinenoexcept | 
Unlock the mutex.
Definition at line 157 of file unique_lock.hpp.
References zpp::result< T_Ok, T_Error >::assign_error(), zpp::k_inval, and zpp::k_perm.