Clang: Workaround bug in clang for multithreading

We have to fix that but people want to try it now.

Change-Id: I957215c7ec05ec0b0632179b538f5fac41f77dab
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2016-12-07 17:21:44 +01:00
parent 542c730b33
commit 1f7694135d

View File

@@ -125,7 +125,11 @@ void RefactoringServer::gatherSourceRangesAndDiagnosticsForQueryMessage(
{
std::vector<Future> futures;
#ifdef _WIN32
std::size_t freeProcessors = 1;
#else
std::size_t freeProcessors = std::thread::hardware_concurrency();
#endif
while (!sources.empty() || !futures.empty()) {
--freeProcessors;