aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-08-29 09:55:32 +0000
committerGunnar Sletta <gunnar@sletta.org>2014-08-29 13:13:31 +0200
commit461e3ddfe673ffbc6f9e4dcc0e0f851a3dc000e3 (patch)
treeb46ca276c77acfab6abd6d7fd1f03e16fb5aa1f7
parent23fb6df3edcf0d4f3370f48ed1f69b77ae5dd03b (diff)
Abort the application if the render thread fails to start
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>
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index 7bf1d759f7..4e70c3f0a2 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
+++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
@@ -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";