Simplify the mutexpool used in QObject.
authorOlivier Goffart <olivier.goffart@nokia.com>
Tue, 26 Jul 2011 08:44:55 +0000 (10:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 29 Jul 2011 08:32:16 +0000 (10:32 +0200)
commitddf444d31a7cb961b79190131cb679fd7a6351fd
tree2fd1da740c8e89de4e4ef810e5dc3d7baf5616b1
parent86a237929e2b67ce333b635b760e78c628effb60
Simplify the mutexpool used in QObject.

Since we now have QBasicMutex as a POD, we can simplify the mutexpool.
This remove the call the the Q_GLOBAL_STATIC and some others tests that
are taking CPU cycles when activating a signal.

The QMutexPool class itself can't be simplified because its mutex are
recursive mutexes, and the size is dynamic. also it is harder to get all
the mutexes initialized to 0.

Change-Id: Ie781655635907d2ad620eb189099cba14638414f
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/2171
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
src/corelib/kernel/qobject.cpp