Removed usage of pipe in Blackberry event dispatcher
authorBernd Weimer <bweimer@rim.com>
Wed, 31 Oct 2012 10:36:57 +0000 (11:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 12:47:41 +0000 (13:47 +0100)
commitab64c117b3bcded3844c5225c33ae92cee3fea0b
tree72882b4b763f1b1db0fbf2e04b5d9478ef0d11ae
parent4c34e761de4e27d29f7dca78ce912b4bdfd7bd44
Removed usage of pipe in Blackberry event dispatcher

Using a pipe for thread wake-ups is inefficient and can introduce significant
latency. Replaced the pipe by directly sending a BPS event.

Refactored the wake-up code in the private class of the UNIX event dispatcher.

Backport of 9dacccd0391219c97c01e89f0547ee002abb1e55

Change-Id: I222516f53afdd8daf845249cc33172399cfd6c21
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Jeff Kehres <jkehres@rim.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
src/corelib/kernel/qeventdispatcher_blackberry.cpp
src/corelib/kernel/qeventdispatcher_blackberry_p.h
src/corelib/kernel/qeventdispatcher_unix.cpp
src/corelib/kernel/qeventdispatcher_unix_p.h