From 179e79b18d1827e38d8ffe2914e5d15b12e270d5 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 6 May 2024 10:53:06 -0700 Subject: QThreadPool: add waitForDone() based on QDeadlineTimer It was already being used internally this way, so all we needed was to provide the front-end API and inline the old API. [ChangeLog][QtCore][QThreadPool] Added an overload of waitForDone() based on QDeadlineTimer. Fixes: QTBUG-125107 Change-Id: Ic5b1273bb0204c31afd8fffd17ccf7c5bee07c35 Reviewed-by: Ahmad Samir --- src/corelib/compat/removed_api.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/compat/removed_api.cpp') diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index ed285dc8f1..3c6123ed15 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -1078,6 +1078,10 @@ bool QRegularExpression::operator==(const QRegularExpression &other) const #include "qstring.h" // inlined API +#if QT_CONFIG(thread) +# include "qthreadpool.h" // inlined API +#endif + #include "qurl.h" bool QUrl::operator<(const QUrl &url) const -- cgit v1.2.3