diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-19 12:30:11 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-23 11:13:45 +0000 |
commit | 303b554543ef357b95409a6d4ca64fe7cb98182c (patch) | |
tree | bd74ad59067a21921c04bb0c37e452f024f799fc /src/plugins/cpptools/cppmodelmanager.h | |
parent | db014de91cd4ed9b07c0ca4a6465a2e8e5b0ebf4 (diff) | |
download | qt-creator-303b554543ef357b95409a6d4ca64fe7cb98182c.tar.gz |
CppTools: Make sure there's only one C++ parsing thread per project
Switching back and forth between targets or build configurations could
result in an arbitrary amount of C++ parser threads running at the same
time, wasting valuable resources.
We now cancel a currently running parser thread when starting a new one
for the same project.
Fixes: QTCREATORBUG-24890
Change-Id: Ie1afc4971515fcad01dae182578fd77daa642cec
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index aa3a88a301..0af91d702b 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -286,8 +286,6 @@ private: void initializeBuiltinModelManagerSupport(); void delayedGC(); void recalculateProjectPartMappings(); - void watchForCanceledProjectIndexer(const QFuture<void> &future, - ProjectExplorer::Project *project); void replaceSnapshot(const CPlusPlus::Snapshot &newSnapshot); void removeFilesFromSnapshot(const QSet<QString> &removedFiles); |