Use QFreeList for timer id allocation
authorBradley T. Hughes <bradley.hughes@nokia.com>
Tue, 19 Jul 2011 14:27:42 +0000 (16:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jul 2011 11:40:07 +0000 (13:40 +0200)
commit33a55c5661299085c5e381f9aaf99b74ccc7b6b1
tree80e51ce2f237ef7353f0f17092029e93984270f7
parent6b82798ee73dc8aac6f6a6c4c12ff291d6d7e9e1
Use QFreeList for timer id allocation

The timer id allocator doesn't need a paylod (hence T=void), but we want
to tune the allocation 'strategy.' We allocate a maximum of 6 blocks
(like before), but the first block is twice as large as before and is
not static writable anymore. The initial value is 1 (0 is not a valid
timer id), but otherwise the constants are the same as the defaults.

Change-Id: Ied49ff4d7a6a8d69bc8c7bfa5475e4111446659f
Reviewed-on: http://codereview.qt.nokia.com/2161
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/corelib/kernel/qabstracteventdispatcher.cpp