summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutexpool_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread/qmutexpool_p.h')
-rw-r--r--src/corelib/thread/qmutexpool_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutexpool_p.h b/src/corelib/thread/qmutexpool_p.h
index fa9a734065..20449c24d4 100644
--- a/src/corelib/thread/qmutexpool_p.h
+++ b/src/corelib/thread/qmutexpool_p.h
@@ -69,7 +69,7 @@ public:
inline QMutex *get(const void *address) {
int index = uint(quintptr(address)) % mutexes.count();
- QMutex *m = mutexes[index];
+ QMutex *m = mutexes[index].load();
if (m)
return m;
else