summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qmutex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h
index dd1455058d..90bd93adef 100644
--- a/src/corelib/thread/qmutex.h
+++ b/src/corelib/thread/qmutex.h
@@ -75,8 +75,8 @@ public:
unlockInternal();
}
- bool tryLock(int timeout = 0) QT_MUTEX_LOCK_NOEXCEPT {
- return fastTryLock() || lockInternal(timeout);
+ bool tryLock() Q_DECL_NOTHROW {
+ return fastTryLock();
}
bool isRecursive();