summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsscreen.h
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2013-08-22 14:31:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-23 09:16:41 +0200
commitbd00b51c47f986dd2f8b7696b09f10f19321a99e (patch)
treef5aa8bb67a24476ddd840e69815690a2cbb60feb /src/plugins/platforms/windows/qwindowsscreen.h
parentd593d6955c149cf75a5f5796292b93ac9d636fee (diff)
XCB: Fix race with the event thread
The XCB backend runs a thread which gets events out of the XCB event queue and feeds it to the main thread via another queue. This queue is protected by a mutex. However, when the event thread exits, it cleans up after itself and frees all remaining entries in the queue. This code messed with the event queue without acquiring the needed mutex and left behind a list full of stale pointers. Fix this and protect the freeing with the correct mutex and clear the event queue afterwards. Change-Id: Ie49cf6241b76be86d8cebbc931f7226a3f6a14e5 Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.h')
0 files changed, 0 insertions, 0 deletions