QThread: add empty functions for the no-thread build

Add implementation for requestInterruption() and
isInterruptionRequested().

Pick-to: 6.4
Change-Id: I9ffabb0181a48c71deded7362c6c8e2e96418cc0
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Morten Sørvig 2022-08-25 13:53:46 +02:00
parent 0988ad8521
commit 927bb089f7
1 changed files with 10 additions and 0 deletions

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;