Unlock the eventreader before calling handleEvent()

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 <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Lars Knoll 2011-09-22 16:50:13 +02:00 committed by Qt by Nokia
parent 867e6d208c
commit c4049750e7

View File

@ -634,7 +634,9 @@ void QXcbConnection::processXcbEvents()
else
++it;
}
m_reader->unlock();
handleXcbEvent(event);
m_reader->lock();
}
free(event);