summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/testcodeparser.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-03-07 17:31:48 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-03-10 09:52:10 +0000
commit8240333f969ff1707997e080733d7f83b2385fc0 (patch)
treece19d57a5be4df584e49472428cda5480e83c61f /src/plugins/autotest/testcodeparser.cpp
parentcfedbb2cb05ca7ce7487d4bc24f538d09fac72e0 (diff)
downloadqt-creator-8240333f969ff1707997e080733d7f83b2385fc0.tar.gz
TestCodeParser: Apply priority to thead pool
Rather to async task. Change-Id: I253de9f04e655e394027d15273a86049f5b61f5b Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/autotest/testcodeparser.cpp')
-rw-r--r--src/plugins/autotest/testcodeparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp
index 3b9c396fed..55fc5ec907 100644
--- a/src/plugins/autotest/testcodeparser.cpp
+++ b/src/plugins/autotest/testcodeparser.cpp
@@ -50,6 +50,7 @@ TestCodeParser::TestCodeParser()
m_reparseTimer.setSingleShot(true);
connect(&m_reparseTimer, &QTimer::timeout, this, &TestCodeParser::parsePostponedFiles);
m_threadPool->setMaxThreadCount(std::max(QThread::idealThreadCount()/4, 1));
+ m_threadPool->setThreadPriority(QThread::LowestPriority);
m_futureSynchronizer.setCancelOnWait(true);
}
@@ -361,7 +362,6 @@ void TestCodeParser::scanForTests(const FilePaths &fileList, const QList<ITestPa
const auto setup = [this, codeParsers, file](AsyncTask<TestParseResultPtr> &async) {
async.setConcurrentCallData(parseFileForTests, codeParsers, file);
async.setThreadPool(m_threadPool);
- async.setPriority(QThread::LowestPriority);
async.setFutureSynchronizer(&m_futureSynchronizer);
};
const auto onDone = [this](const AsyncTask<TestParseResultPtr> &async) {