From ae3506d80e11068957af38897e451cddb18bbe70 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 20 Dec 2023 07:43:25 +1000 Subject: [PATCH] wasm: fix single thread build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes linking of apps Pick-to: 6.6 6.7 Change-Id: I9bbec9b63af8ae2801643fe124aeda8b25abeca5 Reviewed-by: Morten Johan Sørvig --- src/corelib/thread/qthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index b45ff173738..28845078d66 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -1014,6 +1014,10 @@ bool QThread::isInterruptionRequested() const return false; } +void QThread::setTerminationEnabled(bool) +{ +} + // No threads: so we can just use static variables Q_CONSTINIT static QThreadData *data = nullptr;