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 89d006ac29..1a47231abc 100644
--- a/src/corelib/thread/qmutexpool_p.h
+++ b/src/corelib/thread/qmutexpool_p.h
@@ -68,7 +68,7 @@ public:
inline QMutex *get(const void *address) {
int index = uint(quintptr(address)) % mutexes.count();
- QMutex *m = mutexes[index].load();
+ QMutex *m = mutexes[index].loadRelaxed();
if (m)
return m;
else