summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2023-12-27 15:04:34 +1000
committerLorn Potter <lorn.potter@gmail.com>2023-12-28 01:09:19 +0000
commit5b7277947cb4ad64f0e784232ace72a9422d692e (patch)
tree6cb1c2eaac3c8940f0a5d59620f8ac3b58aa3efd /src/corelib/thread/qthread.cpp
parenteabef00425083f19b0da0380378e13780d44a199 (diff)
wasm: fix single thread apps build QScopedScopeLevelCounter
QScopedScopeLevelCounter was added and it doesn't really need threads to function, but apps fail to link without it. Change-Id: I7b355369079bc11b8b8b45b3ee1bf5ba81cd1953 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index 28845078d6..aaeca48359 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -146,6 +146,7 @@ void QAdoptedThread::run()
// this function should never be called
qFatal("QAdoptedThread::run(): Internal error, this implementation should never be called.");
}
+#endif
QScopedScopeLevelCounter::QScopedScopeLevelCounter(QThreadData *threadData)
: threadData(threadData)
@@ -162,6 +163,7 @@ QScopedScopeLevelCounter::~QScopedScopeLevelCounter()
<< "scope level to" << threadData->scopeLevel;
}
+#if QT_CONFIG(thread)
/*
QThreadPrivate
*/