forked from qt-creator/qt-creator
CppTools: Use a shared thread pool
Without this, too many threads are spawned, and loading a project takes forever. Change-Id: I3c22557ddd7bfb0c70f7b089c276432e3b003097 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9c0faff713
commit
6234511a2c
@@ -26,6 +26,7 @@
|
||||
#include "cppsemanticinfoupdater.h"
|
||||
|
||||
#include "cpplocalsymbols.h"
|
||||
#include "cppmodelmanager.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/runextensions.h>
|
||||
@@ -200,7 +201,8 @@ void SemanticInfoUpdater::updateDetached(const SemanticInfo::Source source)
|
||||
return;
|
||||
}
|
||||
|
||||
d->m_future = Utils::runAsync(&SemanticInfoUpdaterPrivate::update_helper, d.data(), source);
|
||||
d->m_future = Utils::runAsync(CppModelManager::instance()->sharedThreadPool(),
|
||||
&SemanticInfoUpdaterPrivate::update_helper, d.data(), source);
|
||||
}
|
||||
|
||||
SemanticInfo SemanticInfoUpdater::semanticInfo() const
|
||||
|
||||
Reference in New Issue
Block a user