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.
23 // QMutex::Recursive: less risks for dead-locks
24 Private() : qmutex_(QMutex::Recursive)
32 Mutex::Mutex() : d(new Private)
43 // It makes no sense to copy the mutex,
44 // each instance has its own QMutex,
45 // therefore nothing to copy!
47 Mutex::Mutex(const Mutex&) : d(new Private)
52 Mutex& Mutex::operator=(const Mutex&)
59 Mutex::Locker::Locker(Mutex* mtx) : mutex_(mtx)
61 mutex_->d->qmutex_.lock();
65 Mutex::Locker::~Locker()
67 mutex_->d->qmutex_.unlock();