forked from qt-creator/qt-creator
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:
@@ -125,7 +125,11 @@ void RefactoringServer::gatherSourceRangesAndDiagnosticsForQueryMessage(
|
|||||||
{
|
{
|
||||||
std::vector<Future> futures;
|
std::vector<Future> futures;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
std::size_t freeProcessors = 1;
|
||||||
|
#else
|
||||||
std::size_t freeProcessors = std::thread::hardware_concurrency();
|
std::size_t freeProcessors = std::thread::hardware_concurrency();
|
||||||
|
#endif
|
||||||
|
|
||||||
while (!sources.empty() || !futures.empty()) {
|
while (!sources.empty() || !futures.empty()) {
|
||||||
--freeProcessors;
|
--freeProcessors;
|
||||||
|
Reference in New Issue
Block a user