Fix lockup in creator.
authorGunnar Sletta <gunnar.sletta@digia.com>
Fri, 15 Nov 2013 14:28:33 +0000 (15:28 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 15 Nov 2013 20:25:05 +0000 (21:25 +0100)
commitf189bb458179630b26a5b93e06eacaa2a138b793
tree7fd35be736347c52623d63faa4ac3706c01212b3
parente2ca539562fd7fd2eb33c56c5d5d9c0e5196b7af
Fix lockup in creator.

My previous fix to force expose when the render thread is inactive
was not enough. We now lock down access to 'QSGRenderThread::window'
so that it will always be set when the thread is in the "exposed"
state and 0 when the thread is in the "obscured" state.

This introduces another sync point in handleObscurity to protect
the writing of window in the render thread.

Task-number: QTCREATORBUG-10793
Change-Id: I1e1153189b3a3562705892b42625f88ef6329188
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
src/quick/scenegraph/qsgthreadedrenderloop.cpp