aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-13 16:01:59 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-16 10:56:08 +0000
commit3fa8540800c43ccc4e4c1f8f323fb5ade34044db (patch)
tree9cf577444246737fa28f7e5eac8bb782b5f6e16e /src/qml/qml/qqmlmetatype_p.h
parentb91569219b901480eb09d648357485e3d9dbf3d1 (diff)
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>
Diffstat (limited to 'src/qml/qml/qqmlmetatype_p.h')
-rw-r--r--src/qml/qml/qqmlmetatype_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype_p.h b/src/qml/qml/qqmlmetatype_p.h
index 63e6e3bec8..e5ac20d314 100644
--- a/src/qml/qml/qqmlmetatype_p.h
+++ b/src/qml/qml/qqmlmetatype_p.h
@@ -62,7 +62,7 @@ class QQmlTypePrivate;
class QQmlTypeModule;
class QHashedString;
class QHashedStringRef;
-class QReadWriteLock;
+class QMutex;
namespace QV4 { struct String; }
@@ -121,7 +121,7 @@ public:
static void setTypeRegistrationNamespace(const QString &);
static QStringList typeRegistrationFailures();
- static QReadWriteLock *typeRegistrationLock();
+ static QMutex *typeRegistrationLock();
};
struct QQmlMetaTypeData;