diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-10 10:07:51 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-14 15:27:06 +0000 |
commit | 666486b3efec871301b82244ec661e1eaa6cca9c (patch) | |
tree | 6ec0d41b7eac7ad00d07fa877cf4a3fecac30fe8 /src/corelib/thread/qreadwritelock_p.h | |
parent | 4e1b09fa8ff1a9ab42c0a29a2efe1ae7f4700d71 (diff) |
Fix performance of recursive read-write locks
The implementation used an expensive QHash to keep track of reading threads,
for seemingly no good reason.
Change-Id: Iffa5b18d80f56b8ff22d39aa6bc3d52c2e3ed0ef
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qreadwritelock_p.h')
-rw-r--r-- | src/corelib/thread/qreadwritelock_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/thread/qreadwritelock_p.h b/src/corelib/thread/qreadwritelock_p.h index e57c0e403f..15a6d1f57e 100644 --- a/src/corelib/thread/qreadwritelock_p.h +++ b/src/corelib/thread/qreadwritelock_p.h @@ -69,7 +69,6 @@ struct QReadWriteLockPrivate bool recursive; Qt::HANDLE currentWriter; - QHash<Qt::HANDLE, int> currentReaders; }; QT_END_NAMESPACE |