Not giving QMutexLocker a name means that it's lifetime is
not guaranteed to be bound to the current scope.
Change-Id: I6e58b0aab814c5e686fac3ff0aa6b671e17db240
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
QByteArray data = QV8Worker::serialize(args[2], engine);
- QMutexLocker(&engine->p->m_lock);
+ QMutexLocker locker(&engine->p->m_lock);
WorkerScript *script = engine->p->workers.value(id);
if (!script)
return v8::Undefined();
{
QQuickWorkerScriptEnginePrivate *p = QQuickWorkerScriptEnginePrivate::get(workerEngine);
- QMutexLocker(&p->m_lock);
+ QMutexLocker locker(&p->m_lock);
if (script->owner)
QCoreApplication::postEvent(script->owner, new WorkerErrorEvent(error));
}