revert mutex parent class from qrecursivemutex to qmutex

This commit is contained in:
Xiao YiFang 2022-06-18 09:17:43 +08:00
parent 7a43cc366e
commit 3d3088738e

View file

@ -4,16 +4,16 @@
#ifndef __MUTEX_HH_INCLUDED__ #ifndef __MUTEX_HH_INCLUDED__
#define __MUTEX_HH_INCLUDED__ #define __MUTEX_HH_INCLUDED__
#include <QRecursiveMutex> #include <QMutex>
/// This provides a mutex class. As you can see, it's just a Qt one, but it /// This provides a mutex class. As you can see, it's just a Qt one, but it
/// does provide the Lock class which doesn't seem to exist in Qt, and it does /// does provide the Lock class which doesn't seem to exist in Qt, and it does
/// provide some abstraction for dictionaries in case they are to be ported /// provide some abstraction for dictionaries in case they are to be ported
/// away from Qt. /// away from Qt.
class Mutex : public QRecursiveMutex class Mutex : public QMutex
{ {
public: public:
Mutex() : QRecursiveMutex() Mutex() : QMutex()
{} {}
~Mutex() ~Mutex()
{} {}