fix a deaklock in porting from QWebKit to QWebEngine

This commit is contained in:
ngn999 2022-03-30 22:08:58 +08:00
parent 32fcd38dc0
commit 889864a923

View file

@ -4,16 +4,16 @@
#ifndef __MUTEX_HH_INCLUDED__
#define __MUTEX_HH_INCLUDED__
#include <QMutex>
#include <QRecursiveMutex>
/// 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
/// provide some abstraction for dictionaries in case they are to be ported
/// away from Qt.
class Mutex: public QMutex
class Mutex: public QRecursiveMutex
{
public:
Mutex() : QMutex( )
Mutex() : QRecursiveMutex( )
{}
~Mutex()
{}