diff options
author | axis <qt-info@nokia.com> | 2009-05-19 14:17:29 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-05-19 14:17:29 (GMT) |
commit | a1db305f482de2d24797b8f99a752e49e80fa392 (patch) | |
tree | e9e8262231021ecb8b3842ff4962b19696299da5 /src/corelib/kernel/qobject.h | |
parent | dbf64e86f37384a991153335ca4c1528cf44295a (diff) | |
download | Qt-a1db305f482de2d24797b8f99a752e49e80fa392.zip Qt-a1db305f482de2d24797b8f99a752e49e80fa392.tar.gz Qt-a1db305f482de2d24797b8f99a752e49e80fa392.tar.bz2 |
Made a small correction and optmization to the event dispatcher.
By keeping record of the iteration count of the event loop, we can
determine whether the active object being processed is being run for
the first time or not in the current iteration. This is slightly
faster, since it saves us from adding the AO to the deferred queue
the second time around if the iteration is different. It is also
slightly more correct, since otherwise running a timer twice would
take three calls to processEvents instead of two (first time: run AO,
second time: add to queue, third time: run AO from the queue).
RevBy: Trust me
AutoTest: Passed
Diffstat (limited to 'src/corelib/kernel/qobject.h')
0 files changed, 0 insertions, 0 deletions