From c4049750e715f39224a73de9ed1cc69d4f14866a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 22 Sep 2011 16:50:13 +0200 Subject: [PATCH] Unlock the eventreader before calling handleEvent() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Handle event can cause accesses to the event queue from other places (e.g. through checkEvent()). Unlock the reader to avoid deadlocks. Change-Id: I1e5a79ce556920127848fccc3387d711c7cd32c2 Reviewed-on: http://codereview.qt-project.org/5557 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/plugins/platforms/xcb/qxcbconnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index a0b894602d..f7642fa9c9 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -634,7 +634,9 @@ void QXcbConnection::processXcbEvents() else ++it; } + m_reader->unlock(); handleXcbEvent(event); + m_reader->lock(); } free(event);