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:
parent
53f17d809a
commit
0f3796941f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user