3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "support/mutex.h"
23 #if QT_VERSION < 0x060000
24 // QMutex::Recursive: less risks for dead-locks
25 Private() : qmutex_(QMutex::Recursive)
35 QRecursiveMutex qmutex_;
40 Mutex::Mutex() : d(new Private)
51 Mutex::Locker::Locker(Mutex* mtx) : mutex_(mtx)
53 mutex_->d->qmutex_.lock();
57 Mutex::Locker::~Locker()
59 mutex_->d->qmutex_.unlock();