diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-09-23 11:51:17 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-10-05 11:03:49 (GMT) |
commit | 0ed23e95fa756fd851f509a565f91ab43fc30449 (patch) | |
tree | 9c4f8dd088587ed2aab8708ac52b37f3ba89cab4 /src/opengl/qglpaintdevice_qws.cpp | |
parent | 0573653f830fada99311c88ab46e8f5a37854b90 (diff) | |
download | Qt-0ed23e95fa756fd851f509a565f91ab43fc30449.zip Qt-0ed23e95fa756fd851f509a565f91ab43fc30449.tar.gz Qt-0ed23e95fa756fd851f509a565f91ab43fc30449.tar.bz2 |
Fix regressions in qeventloop, qtimer, and qsocketnotifier autotests
Commit ed375675d4a4f6fd63edeb242e23c87b3de4be6f triggers a behavior in
Glib's mainloop implementation where some event sources are not
"serviced" every iteration of the mainloop context. This breaks an
invariant that many tests relied on, so we need to solve the problem.
The invariant is that a newly added timer that would normally fire on
the next pass of the event loop (liker a zero timer) SHOULD actually
fire. We do this by registering 2 timer event sources with Glib's
mainloop: one normal priority source and one idle priority source. The
idle priority source is the one that will send events most of the
time, with the normal priority one taking over only when
processEvents() is called manually.
Task-number: QT-877
Reviewed-by: jbache
Reviewed-by: thiago
Reviewed-by: denis
(cherry picked from commit d0d0fdb8e46351b4ab8492de31e5363ef6662b57)
Diffstat (limited to 'src/opengl/qglpaintdevice_qws.cpp')
0 files changed, 0 insertions, 0 deletions