Remove QBasicAtomic::tryLock with a timer

The non-futex implementation does not support timed locks in
QBasicMutex. That is only supported in QMutex (due to the
destructor).

Change-Id: I46d33a66a36e05c8a4344823537178e80a6ddd76
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Thiago Macieira 2012-08-11 18:18:27 +02:00 committed by Qt by Nokia
parent 0cc97411d5
commit bd5b4de839

View File

@ -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();