AUI Framework
develop
Cross-platform base for C++ UI apps
|
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 () |
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 |
Public Member Functions inherited from aui::noncopyable | |
noncopyable (const noncopyable &)=delete | |
noncopyable & | operator= (const noncopyable &)=delete |
Wraps the object with mutex, providing thread-safety layer and a runtime check.