diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-20 18:30:37 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-24 19:31:24 +0100 |
commit | ea29ea8095e1fe6e7c1766f87aea33650a1a485d (patch) | |
tree | b6a908b371b7139d4f58be814f1de44807bb5f98 /compat/copyable-mutex.cpp | |
parent | 0fbca6ba484194a9c16c43bc93d70590702c0a99 (diff) |
compat/mutex: rename
Diffstat (limited to 'compat/copyable-mutex.cpp')
-rw-r--r-- | compat/copyable-mutex.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/compat/copyable-mutex.cpp b/compat/copyable-mutex.cpp deleted file mode 100644 index 17b5aa34..00000000 --- a/compat/copyable-mutex.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "copyable-mutex.hpp" -#include <cstdlib> - -mutex& mutex::operator=(const mutex& rhs) -{ - if (rhs->isRecursive() != inner.isRecursive()) - std::abort(); - - return *this; -} - -mutex::mutex(const mutex& datum) : mutex{datum.inner.isRecursive() ? Recursive : NonRecursive} -{ -} - -mutex::mutex(RecursionMode m) : inner{m} -{ -} - -QMutex* mutex::operator&() const -{ - return *this; -} - -mutex::operator QMutex*() const -{ - return &inner; -} - -QMutex* mutex::operator->() const -{ - return *this; -} |