From 303b554543ef357b95409a6d4ca64fe7cb98182c Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 19 Aug 2021 12:30:11 +0200 Subject: 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 --- src/plugins/cpptools/cppmodelmanager.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/plugins/cpptools/cppmodelmanager.h') 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 &future, - ProjectExplorer::Project *project); void replaceSnapshot(const CPlusPlus::Snapshot &newSnapshot); void removeFilesFromSnapshot(const QSet &removedFiles); -- cgit v1.2.1