AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AMutexWrapper< T > Class Template Reference

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

#include <AUI/Thread/AMutexWrapper.h>

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
 

Detailed Description

template<typename T>
class AMutexWrapper< T >

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


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