[PATCH] D55770: [clangd] BackgroundIndex rebuilds symbol index periodically.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 18 04:59:26 PST 2018
kadircet added inline comments.
Comment at: clangd/index/Background.h:112
+ const size_t BuildIndexPeriodMs;
+ std::atomic<bool> SymbolsUpdatedSinceLastIndex;
+ std::mutex IndexMu;
We already have a mutex and cv, maybe get rid of this one signal the CV whenever we have an update and sleep for `buildindexperiodms` before issuing the re-build?
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
More information about the cfe-commits