diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-02-26 14:21:35 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-02-26 14:25:22 (GMT) |
commit | f3eab3dd1bc982ad5847fdff67a59e2edfa20b54 (patch) | |
tree | 733ff581f2de1081b4a043851df3d7a2d9b09992 /doc/src/snippets/code | |
parent | f36a907c40ebe6e22af141946ab8ef405ce3efb8 (diff) | |
download | Qt-f3eab3dd1bc982ad5847fdff67a59e2edfa20b54.zip Qt-f3eab3dd1bc982ad5847fdff67a59e2edfa20b54.tar.gz Qt-f3eab3dd1bc982ad5847fdff67a59e2edfa20b54.tar.bz2 |
Don't lock the QMetaType custom types mutex unnecessarily
Check the built-in types first, and only lock the mutex if
the type is not found there.
This makes the QMetaType::typeBuiltin benchmark ~5x faster.
Reviewed-by: Harald Fernengel
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions