summaryrefslogtreecommitdiffstats
path: root/qmake/project.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-04-20 16:17:38 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-04-21 09:11:10 (GMT)
commit48b2025663c93003cd00b807bb74d220c933b78b (patch)
treea79aac6a78db517a43a7ea454f06c00cf516f380 /qmake/project.cpp
parenta087cfe4049292b726a5fea34f552ad86b44c2ae (diff)
downloadQt-48b2025663c93003cd00b807bb74d220c933b78b.zip
Qt-48b2025663c93003cd00b807bb74d220c933b78b.tar.gz
Qt-48b2025663c93003cd00b807bb74d220c933b78b.tar.bz2
Optimize ~QObject
By avoiding to lock mutextes when not needed. According to experiment, many object are destroyed without any connection attached to them. (80% with qml, 50% with creator) d->currentSender does not need to be protected by the mutex since we are in the destructor. We do not need Q_TRY since the mutex is grenteed to exist if there is connections. We do not need to call QCoreApplication::removePostedEvents if there is not events to process. And d->postedEvents can be checked outside of the lock since it cannot be incremented anymore in the destructor Reviewed-by: Roberto Raggi Reviewed-by: Brad
Diffstat (limited to 'qmake/project.cpp')
0 files changed, 0 insertions, 0 deletions