use normal mutex instead of recursivemutex
This commit is contained in:
parent
aaac2bfcf7
commit
16258cc015
|
@ -28,12 +28,7 @@
|
|||
|
||||
static QAtomicInt cppParserCount(0);
|
||||
|
||||
CppParser::CppParser(QObject *parent) : QObject(parent),
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
mMutex()
|
||||
#else
|
||||
mMutex(QMutex::Recursive)
|
||||
#endif
|
||||
CppParser::CppParser(QObject *parent) : QObject(parent)
|
||||
{
|
||||
mParserId = cppParserCount.fetchAndAddRelaxed(1);
|
||||
mLanguage = ParserLanguage::CPlusPlus;
|
||||
|
|
|
@ -692,11 +692,7 @@ private:
|
|||
#ifdef QT_DEBUG
|
||||
int mLastIndex;
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
QRecursiveMutex mMutex;
|
||||
#else
|
||||
QMutex mMutex;
|
||||
#endif
|
||||
QMap<QString,KeywordType> mCppKeywords;
|
||||
QSet<QString> mCppTypeKeywords;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue