summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2017-01-25 15:20:26 +0100
committerNico Vertriest <nico.vertriest@qt.io>2017-02-28 09:34:05 +0000
commit657bea873b9bf66764848d612b4188039ec7e583 (patch)
tree208142b53cec92e4fdc70c3ebad59bf584a2c08d /src/corelib
parent4a31eca4ce4351fc6e9c275c519306d36f25d152 (diff)
Doc: added info about return type for function QMutex::try_lock()
qmutex.cpp:266: warning: Undocumented return value Change-Id: Ib93a5a2505f663f266871dbe5582fb5856096889 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qmutex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp
index b9b16e066f..29095f8b51 100644
--- a/src/corelib/thread/qmutex.cpp
+++ b/src/corelib/thread/qmutex.cpp
@@ -266,6 +266,9 @@ bool QMutex::tryLock(int timeout) QT_MUTEX_LOCK_NOEXCEPT
/*! \fn bool QMutex::try_lock()
\since 5.8
+ This function returns \c true if the lock was obtained; otherwise it
+ returns \c false.
+
This function is provided for compatibility with the Standard Library
concept \c Lockable. It is equivalent to tryLock().