Point out that dynamically modified meta objects are not threadsafe
Given that this is an exception, it doesn't invalidate the general thread-safety of static meta objects, and putting a locking mechanism into Qt for this would be complete over- (and performance-)kill. Task-number: QTBUG-70915 Change-Id: I4a538b977f5c2e8173cb236023e5d9ca34add5b5 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
626340d458
commit
c4aa90cb56
@ -112,6 +112,13 @@ QT_BEGIN_NAMESPACE
|
|||||||
are returned by classInfo(), and you can search for pairs with
|
are returned by classInfo(), and you can search for pairs with
|
||||||
indexOfClassInfo().
|
indexOfClassInfo().
|
||||||
|
|
||||||
|
\note Operations that use the meta object system are generally thread-
|
||||||
|
safe, as QMetaObjects are typically static read-only instances
|
||||||
|
generated at compile time. However, if meta objects are dynamically
|
||||||
|
modified by the application (for instance, when using QQmlPropertyMap),
|
||||||
|
then the application has to explicitly synchronize access to the
|
||||||
|
respective meta object.
|
||||||
|
|
||||||
\sa QMetaClassInfo, QMetaEnum, QMetaMethod, QMetaProperty, QMetaType,
|
\sa QMetaClassInfo, QMetaEnum, QMetaMethod, QMetaProperty, QMetaType,
|
||||||
{Meta-Object System}
|
{Meta-Object System}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user