Abort the application if the render thread fails to start
authorGunnar Sletta <gunnar@sletta.org>
Fri, 29 Aug 2014 09:55:32 +0000 (09:55 +0000)
committerGunnar Sletta <gunnar@sletta.org>
Fri, 29 Aug 2014 11:13:31 +0000 (13:13 +0200)
This is a system-level failure, with which we can do very little,
so we abort.

Change-Id: I945da8bd28df35a6c8987160a2f0177d27d6c95d
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
src/quick/scenegraph/qsgthreadedrenderloop.cpp

index 7bf1d75..4e70c3f 100644 (file)
@@ -908,6 +908,8 @@ void QSGThreadedRenderLoop::handleExposure(QQuickWindow *window)
             w->thread->moveToThread(w->thread);
         }
         w->thread->start();
+        if (!w->thread->isRunning())
+            qFatal("Render thread failed to start, aborting application.");
 
     } else {
         qCDebug(QSG_LOG_RENDERLOOP) << "- render thread already running";