Use Utils::runAsync instead of QtConcurrent::run

QtConcurrent has the issue that it uses a globally shared thread pool,
with no finer granularity for simulataneous tasks.

Create an explicit event loop for the test runner for that.

Change-Id: Idcf2f125e111d94a5a60e5b136fd875225326e14
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-01-19 12:02:07 +01:00
committed by Christian Stenger
parent 9a3efd4950
commit 06e02480f4
2 changed files with 5 additions and 4 deletions

View File

@@ -800,7 +800,7 @@ void TestCodeParser::scanForTests(const QStringList &fileList)
return;
}
QFuture<void> future = QtConcurrent::run(&performParse, list, this);
QFuture<void> future = Utils::runAsync<void>(&performParse, list, this);
Core::FutureProgress *progress
= Core::ProgressManager::addTask(future, isFullParse ? tr("Scanning for Tests")
: tr("Refreshing Tests List"),