AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AMutexWrapper< T > Class Template Reference

Wraps the object with mutex, providing thread-safety layer and a runtime check. More...

Detailed Description

template<typename T>
class AMutexWrapper< T >

Wraps the object with mutex, providing thread-safety layer and a runtime check.

Public Member Functions

 AMutexWrapper (T value=T()) noexcept
 
void lock ()
 
AMutexWrapperoperator= (const T &rhs)
 
AMutexWrapperoperator= (T &&rhs) noexcept
 
template<typename U , std::enable_if_t< std::is_constructible_v< U, T > > * = 0>
 operator U () noexcept
 
void unlock ()
 
T & value () noexcept
 
T * operator-> () noexcept
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

#include <AUI/Thread/AMutexWrapper.h>


The documentation for this class was generated from the following file:
Inheritance diagram for AMutexWrapper< T >:
Collaboration diagram for AMutexWrapper< T >: