diff options
author | Eike Ziller <eike.ziller@qt.io> | 2016-11-14 15:26:04 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2016-11-15 15:00:18 +0000 |
commit | 37076e8c33aaf7c965446a31d38e371fc34eea87 (patch) | |
tree | 1534f46ca8b54d0cb4e6d485faba042c61421593 /src/plugins/autotest/testcodeparser.cpp | |
parent | cedf7a012ef7a447809bf039a8c4229329ad5b23 (diff) | |
download | qt-creator-37076e8c33aaf7c965446a31d38e371fc34eea87.tar.gz |
Reduce thread priority for test parsing
Adding API for that to the parallel map/reduce functions
Change-Id: Ic7987d899c124dcb04c1ca110b09fc97576873fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest/testcodeparser.cpp')
-rw-r--r-- | src/plugins/autotest/testcodeparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index dadae37de8..fe4c1132f1 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -354,7 +354,8 @@ void TestCodeParser::scanForTests(const QStringList &fileList) [this](QFutureInterface<TestParseResultPtr> &fi, const QString &file) { parseFileForTests(m_testCodeParsers, fi, file); }, - Utils::MapReduceOption::Unordered); + Utils::MapReduceOption::Unordered, + QThread::LowestPriority); m_futureWatcher.setFuture(future); if (list.size() > 5) { Core::ProgressManager::addTask(future, tr("Scanning for Tests"), |