summaryrefslogtreecommitdiffhomepage
path: root/compat/mutex.cpp
blob: 71f423299b7e55e1e998f1c16d354fc7fef89696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "export.hpp"
#include "mutex.hpp"
#include <cstdlib>
#include <QMutex>
#include <QRecursiveMutex>

template<typename M>
mutex<M>& mutex<M>::operator=(const mutex& rhs)
{
    return *this;
}

template<typename MutexType> MutexType* mutex<MutexType>::operator&() const { return &inner; }

template<typename M> mutex<M>::mutex(const mutex<M>& datum) {}
template<typename M> mutex<M>::mutex() = default;

template<typename M>
mutex<M>::operator M*() const noexcept
{
    return &inner;
}

template<typename M>
M* mutex<M>::operator->() const noexcept
{
    return &inner;
}

template class OTR_COMPAT_EXPORT mutex<QMutex>;
template class OTR_COMPAT_EXPORT mutex<QRecursiveMutex>;