diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-04-01 11:22:56 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-04-03 12:20:53 +0200 |
commit | 168a02d4056efbef5c09d6d5810cf174412147c5 (patch) | |
tree | 9305d8ef213de5ffb1091bde89c2d699cee1b933 /src/corelib/kernel/qmetatype.cpp | |
parent | 6f725e6ef915cf5b21f9efc7c964c6103f5833ca (diff) |
QMetaType: unlock QReadLocker early
Unlock the QReadLocker after we're done with the registry, before we
perform expensive operations such as I/O and QByteArrayList::join().
Pick-to: 6.3
Change-Id: I96549c517a2b4ffe34a70ea83f8c061ff9620795
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetatype.cpp')
-rw-r--r-- | src/corelib/kernel/qmetatype.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index bfcf546340..c0bc82ed29 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -207,6 +207,7 @@ const char *QtMetaTypePrivate::typedefNameForType(const QtPrivate::QMetaTypeInte if (it.value() == type_d && it.key() != officialName) otherNames << it.key(); } + l.unlock(); if (!otherNames.isEmpty()) qWarning("QMetaType: type %s has more than one typedef alias: %s, %s", type_d->name, name, otherNames.join(", ").constData()); |