QmlJS: Synchronize Engine::registerValue.

When multiple threads share the Bind instance in a Document and do
lookup on the objects contained inside, that may trigger a new object
creation in some situations - which needs to be synchronized.
This commit is contained in:
Christian Kamm
2010-09-24 13:54:28 +02:00
parent 5873083768
commit bfd7fd464e
2 changed files with 4 additions and 0 deletions

View File

@@ -2528,6 +2528,7 @@ const ObjectValue *Engine::qtObject() const
void Engine::registerValue(Value *value)
{
QMutexLocker locker(&_mutex);
_registeredValues.append(value);
}