From c88a1b3f37a9447961936bae4a8af1377417c64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 13 Mar 2024 16:19:40 +0100 Subject: [PATCH] QFutureInterface: remove comment that was never true Even in the original patch where the comment was added the callouts were made with the lock held. Change-Id: Id8d122010d2195d83ddd4fdaf638f7fc4ac8163d Reviewed-by: Ivan Solovev Reviewed-by: Edward Welbourne --- src/corelib/thread/qfutureinterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/thread/qfutureinterface.cpp b/src/corelib/thread/qfutureinterface.cpp index 536467b6cdd..f83306af00c 100644 --- a/src/corelib/thread/qfutureinterface.cpp +++ b/src/corelib/thread/qfutureinterface.cpp @@ -800,8 +800,7 @@ void QFutureInterfaceBasePrivate::sendCallOuts(const QFutureCallOutEvent &callOu // This function connects an output interface (for example a QFutureWatcher) // to this future. While holding the lock we check the state and ready results -// and add the appropriate callouts to the queue. In order to avoid deadlocks, -// the actual callouts are made at the end while not holding the lock. +// and add the appropriate callouts to the queue. void QFutureInterfaceBasePrivate::connectOutputInterface(QFutureCallOutInterface *iface) { QMutexLocker locker(&m_mutex);