Use QRecursiveMutex

QMutex with QMutex::Recursive is deprecated
This commit is contained in:
Lars Toenning
2022-04-30 16:21:17 +02:00
parent 6ada735774
commit 8b5d02c62b
7 changed files with 14 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ namespace BlackMisc
CIdentifier m_identifier = CIdentifier::anonymous();
QMap<QString, Channel> m_channels;
mutable QMutex m_channelsMutex { QMutex::Recursive };
mutable QRecursiveMutex m_channelsMutex;
};
}
}

View File

@@ -54,7 +54,7 @@ namespace BlackMisc::SharedState
Channel &getChannel(const QObject *object);
QMap<QString, Channel> m_channels;
mutable QMutex m_channelsMutex { QMutex::Recursive };
mutable QRecursiveMutex m_channelsMutex;
};
}