From 0f3796941f8cb55cd304a1478623b34f1a4e9c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Thu, 25 Aug 2022 13:53:46 +0200 Subject: [PATCH] QThread: add empty functions for the no-thread build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add implementation for requestInterruption() and isInterruptionRequested(). Change-Id: I9ffabb0181a48c71deded7362c6c8e2e96418cc0 Reviewed-by: Tor Arne Vestbø Reviewed-by: Thiago Macieira (cherry picked from commit 927bb089f77b922844e403d529df6558aaf05871) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/thread/qthread.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index e294fe2fe04..e2f27075201 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -979,6 +979,16 @@ bool QThread::isRunning() const return d->running; } +void QThread::requestInterruption() +{ + +} + +bool QThread::isInterruptionRequested() const +{ + return false; +} + // No threads: so we can just use static variables Q_CONSTINIT static QThreadData *data = nullptr;