forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user