diff options
Diffstat (limited to 'src/corelib/thread/qmutex.h')
-rw-r--r-- | src/corelib/thread/qmutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h index a49b981d01..4bc2c87cda 100644 --- a/src/corelib/thread/qmutex.h +++ b/src/corelib/thread/qmutex.h @@ -65,7 +65,7 @@ public: } inline void unlock() { - Q_ASSERT(d); //mutex must be locked + Q_ASSERT(d.load()); //mutex must be locked if (!d.testAndSetRelease(dummyLocked(), 0)) unlockInternal(); } |