diff options
Diffstat (limited to 'compat/mutex.hpp')
-rw-r--r-- | compat/mutex.hpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/compat/mutex.hpp b/compat/mutex.hpp deleted file mode 100644 index 54758a08..00000000 --- a/compat/mutex.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include <QMutex> - -#include "export.hpp" - -class OTR_COMPAT_EXPORT mutex -{ - mutable QMutex inner; - -public: - using RecursionMode = QMutex::RecursionMode; - static constexpr RecursionMode Recursive = RecursionMode::Recursive; - static constexpr RecursionMode NonRecursive = RecursionMode::NonRecursive; - - mutex& operator=(const mutex& datum); - mutex(const mutex& datum); - explicit mutex(RecursionMode m); - mutex() : mutex{NonRecursive} {} - - QMutex* operator&() const noexcept; - explicit operator QMutex*() const noexcept; - QMutex* operator->() const noexcept; -}; |