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>
This commit is contained in:
Marc Mutz 2022-04-01 11:22:56 +02:00
parent 6f725e6ef9
commit 168a02d405

View File

@ -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());