projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23fb6df
)
Abort the application if the render thread fails to start
author
Gunnar Sletta
<gunnar@sletta.org>
Fri, 29 Aug 2014 09:55:32 +0000
(09:55 +0000)
committer
Gunnar 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
patch
|
blob
|
history
diff --git
a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index
7bf1d75
..
4e70c3f
100644
(file)
--- 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";