summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-11-24 15:33:03 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-11-27 00:19:28 +0100
commit733bd813283d9bcf6f4dd36bec6633bda1bc7727 (patch)
treeacc1742eb97989a1c6d803d2cbe9e7eca5f343aa /src/corelib/thread/qthread.cpp
parent5a496a614bb949ad7743960df7a8769509b90b8b (diff)
QThread::wait: Clarify documentation for unsigned long overload
It is not immediately clear from the signature that the time parameter's unit is miliseconds. Pick-to: 6.2 Change-Id: Ifee3c6410b6b2352e75571cc53578a660aabb32d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index 302d34d512..066e9e390a 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -986,7 +986,10 @@ void QThread::setEventDispatcher(QAbstractEventDispatcher *eventDispatcher)
/*!
\fn bool QThread::wait(unsigned long time)
+
\overload
+ \a time is the time to wait in milliseconds.
+ If \a time is ULONG_MAX, then the wait will never timeout.
*/
#if QT_CONFIG(thread)