diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-06-09 14:56:00 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-06-09 16:49:41 +0200 |
commit | b55c3d4f6cc14416c64a7e796abe3d9fd996fc94 (patch) | |
tree | b4ac469cdb40ad0aeda2a4bb276bb92858c92d40 /src/qml/qml/qqmlmetatype.cpp | |
parent | 9752ad5af7c7ae188250ab5b8b65c74f70d57b41 (diff) |
QQmlTypePrivate: do not abuse volatile for atomic
Instead of using volatile, use proper atomics for thread safe access.
Moreover, we don't gain anything by using bitfields here, as we have
space for 4 bools due to alignment reasons anyway. Therefore using bools
does not create any overhead.
Change-Id: I390acd935656efcb20265ddb67fa0059f3f18118
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r-- | src/qml/qml/qqmlmetatype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp index 24a8bcfed3..5e66758b43 100644 --- a/src/qml/qml/qqmlmetatype.cpp +++ b/src/qml/qml/qqmlmetatype.cpp @@ -91,7 +91,7 @@ static QQmlTypePrivate *createQQmlType(QQmlMetaTypeData *data, d->iid = type.iid; d->typeId = type.typeId; d->listId = type.listId; - d->isSetup = true; + d->isSetup.storeRelease(true); d->module = QString::fromUtf8(type.uri); d->version = type.version; data->registerType(d); |