Implement threaded synchronous WS events
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Wed, 29 Apr 2015 11:17:31 +0000 (13:17 +0200)
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Thu, 27 Aug 2015 21:58:39 +0000 (21:58 +0000)
commitee767c838a0e0a91394a24b21d44d862d3b60416
treee46613ec123541418fdc1d1bb244d86c350e4e38
parentac9643c85ff829583c8be958b5eea4d543070882
Implement threaded synchronous WS events

Make handleWindowSystemEvent() support being called
from secondary threads in synchronousWindowSystemEvent
mode.

This is implemented by posting the event to the Gui
event queue (which will wake the Qt Gui thread), and
then calling flushWindowSystemEvents which will block
the calling thread until the event has been processed.

Change-Id: I7e8e68c1e0290c17105563268e316b0f8205b3ce
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
src/gui/kernel/qwindowsysteminterface.cpp
src/gui/kernel/qwindowsysteminterface_p.h