mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 03:55:49 +00:00
Small doc updates
This commit is contained in:
parent
64f094d347
commit
27b5816a7f
@ -3,6 +3,8 @@
|
||||
#include <clang-c/Index.h>
|
||||
|
||||
// Simple RAII wrapper about CXIndex.
|
||||
// Note: building a ClangIndex instance acquires a global lock, since libclang
|
||||
// API does not appear to be thread-safe here.
|
||||
class ClangIndex {
|
||||
public:
|
||||
ClangIndex();
|
||||
|
@ -505,14 +505,12 @@ WorkThread::Result IndexMain(Config* config,
|
||||
QueueManager* queue) {
|
||||
EmitProgress(config, queue);
|
||||
|
||||
// TODO: dispose of index after it is not used for a while.
|
||||
// Build one index per-indexer, as building the index acquires a global lock.
|
||||
ClangIndex index;
|
||||
|
||||
// TODO: process all off IndexMain_DoIndex before calling
|
||||
// IndexMain_DoCreateIndexUpdate for
|
||||
// better icache behavior. We need to have some threads spinning on
|
||||
// both though
|
||||
// otherwise memory usage will get bad.
|
||||
// IndexMain_DoCreateIndexUpdate for better icache behavior. We need to have
|
||||
// some threads spinning on both though otherwise memory usage will get bad.
|
||||
|
||||
// We need to make sure to run both IndexMain_DoParse and
|
||||
// IndexMain_DoCreateIndexUpdate so we don't starve querydb from doing any
|
||||
|
Loading…
Reference in New Issue
Block a user