summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qorderedmutexlocker_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/thread/qorderedmutexlocker_p.h b/src/corelib/thread/qorderedmutexlocker_p.h
index 81c7c5268c..ded102d32d 100644
--- a/src/corelib/thread/qorderedmutexlocker_p.h
+++ b/src/corelib/thread/qorderedmutexlocker_p.h
@@ -89,8 +89,8 @@ public:
void unlock()
{
if (locked) {
- if (mtx1) mtx1->unlock();
if (mtx2) mtx2->unlock();
+ if (mtx1) mtx1->unlock();
locked = false;
}
}
@@ -100,7 +100,7 @@ public:
// mtx1 is already locked, mtx2 not... do we need to unlock and relock?
if (mtx1 == mtx2)
return false;
- if (mtx1 < mtx2) {
+ if (std::less<QMutex *>()(mtx1, mtx2)) {
mtx2->lock();
return true;
}