blob: e4d0fee6c52af2f1cca5a52dcbbfd3bb8111f746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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);
QMutex* operator&() const noexcept;
explicit operator QMutex*() const noexcept;
QMutex* operator->() const noexcept;
};
|