diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-08-25 13:53:46 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-08-26 16:21:47 +0200 |
commit | 927bb089f77b922844e403d529df6558aaf05871 (patch) | |
tree | 58e2ee1648fa8e0614ce7a7f721be7b442bac809 /src/corelib | |
parent | 0988ad85216c117f815e8e9ef20e7b7dfe10f1a8 (diff) |
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>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/thread/qthread.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index e294fe2fe0..e2f2707520 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; |