Changed QML type locking
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Mon, 13 Apr 2015 14:01:59 +0000 (16:01 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Thu, 16 Apr 2015 10:56:08 +0000 (10:56 +0000)
commit3fa8540800c43ccc4e4c1f8f323fb5ade34044db
tree9cf577444246737fa28f7e5eac8bb782b5f6e16e
parentb91569219b901480eb09d648357485e3d9dbf3d1
Changed QML type locking

Replace the use of QReadWriteLock with a plain QMutex. At this point
QReadWriteLock adds a lot of overhead due to its internal QHash and otherwise
offers little over a recursive mutex, especially given that there is most
of the time only one reading thread and one writing thread.

Change-Id: I0a91e4a64cff5d25e4a133ed46b08912e81bb055
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlimport.cpp
src/qml/qml/qqmlmetatype.cpp
src/qml/qml/qqmlmetatype_p.h