51 AMutexWrapper(T value = T())
noexcept: mValue(std::move(value)) {}
62 AMutexWrapper& operator=(
const T& rhs) {
67 AMutexWrapper& operator=(T&& rhs)
noexcept {
68 value() = std::move(rhs);
72 template<
typename U, std::enable_if_t<std::is_constructible_v<U, T>>* = 0>
73 operator U()
noexcept {
79 mOwnerThread =
nullptr;
86 AUI_ASSERTX(mOwnerThread ==
AThread::current(),
"AMutexWrapper should be locked by this thread in order to get access to the underlying object");
91 T* operator->()
noexcept {
#define AUI_ASSERTX(condition, what)
Asserts that the passed condition evaluates to true. Adds extra message string.
Definition Assert.h:74