AUI Framework
develop
Cross-platform base for C++ UI apps
|
Wraps the object with a Lockable, providing exclusive access layer, i.e., for thread-safety. More...
#include <AUI/Thread/AMutexWrapper.h>
Public Member Functions# | |
AMutexWrapper (T value=T()) noexcept | |
void | lock () |
AMutexWrapper & | operator= (const T &rhs) |
AMutexWrapper & | operator= (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 |
![]() | |
noncopyable (const noncopyable &)=delete | |
noncopyable & | operator= (const noncopyable &)=delete |
T | The type of the value to be protected. |
Lockable | A lockable type which manages locking behaviour, i.e, AMutex. |
On debug builds, provides a runtime check for better diagnostics.
Aka boost::synchronized_value
.