C++: Do not share dependency table when copying a Snapshot

There are multiple situations were the snapshot is copied and
access/modifications to the dependency table data is made in other
threads, e.g.:

    * FindUsages called by ProcessFile
    * findReferences() in cppuseselectionsupdater.cpp
    * CppModelManager::projectPartFromDependencies() (clang path)

Change-Id: Ided1c5350f339c5bc960b87b32c78ccc21fa61f6
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Nikolai Kosjar
2014-10-06 14:24:13 +02:00
committed by hjk
parent 35e22754f7
commit 32d795f2b6
2 changed files with 5 additions and 6 deletions

View File

@@ -433,7 +433,7 @@ public:
private:
void allIncludesForDocument_helper(const QString &fileName, QSet<QString> &result) const;
mutable QSharedPointer<DependencyTable> m_deps;
mutable DependencyTable m_deps;
Base _documents;
};