QThread: add empty functions for the no-thread build

Add implementation for requestInterruption() and
isInterruptionRequested().

Change-Id: I9ffabb0181a48c71deded7362c6c8e2e96418cc0
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 927bb089f77b922844e403d529df6558aaf05871)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Morten Sørvig 2022-08-25 13:53:46 +02:00 committed by Qt Cherry-pick Bot
parent 53f17d809a
commit 0f3796941f

View File

@ -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;