mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
fix a deaklock in porting from QWebKit to QWebEngine
This commit is contained in:
parent
32fcd38dc0
commit
889864a923
6
mutex.hh
6
mutex.hh
|
@ -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()
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue