mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-22 08:29:38 +00:00
Rename IndexMain to Indexer_Main
This commit is contained in:
parent
d4ce12bb9a
commit
b6071004df
@ -436,14 +436,14 @@ bool IndexMergeIndexUpdates() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IndexMain(Config* config,
|
void Indexer_Main(Config* config,
|
||||||
FileConsumer::SharedState* file_consumer_shared,
|
FileConsumer::SharedState* file_consumer_shared,
|
||||||
TimestampManager* timestamp_manager,
|
TimestampManager* timestamp_manager,
|
||||||
ImportManager* import_manager,
|
ImportManager* import_manager,
|
||||||
ImportPipelineStatus* status,
|
ImportPipelineStatus* status,
|
||||||
Project* project,
|
Project* project,
|
||||||
WorkingFiles* working_files,
|
WorkingFiles* working_files,
|
||||||
MultiQueueWaiter* waiter) {
|
MultiQueueWaiter* waiter) {
|
||||||
auto* queue = QueueManager::instance();
|
auto* queue = QueueManager::instance();
|
||||||
// Build one index per-indexer, as building the index acquires a global lock.
|
// Build one index per-indexer, as building the index acquires a global lock.
|
||||||
ClangIndex index;
|
ClangIndex index;
|
||||||
|
@ -29,14 +29,14 @@ void IndexWithTuFromCodeCompletion(
|
|||||||
const std::string& path,
|
const std::string& path,
|
||||||
const std::vector<std::string>& args);
|
const std::vector<std::string>& args);
|
||||||
|
|
||||||
void IndexMain(Config* config,
|
void Indexer_Main(Config* config,
|
||||||
FileConsumer::SharedState* file_consumer_shared,
|
FileConsumer::SharedState* file_consumer_shared,
|
||||||
TimestampManager* timestamp_manager,
|
TimestampManager* timestamp_manager,
|
||||||
ImportManager* import_manager,
|
ImportManager* import_manager,
|
||||||
ImportPipelineStatus* status,
|
ImportPipelineStatus* status,
|
||||||
Project* project,
|
Project* project,
|
||||||
WorkingFiles* working_files,
|
WorkingFiles* working_files,
|
||||||
MultiQueueWaiter* waiter);
|
MultiQueueWaiter* waiter);
|
||||||
|
|
||||||
bool QueryDb_ImportMain(Config* config,
|
bool QueryDb_ImportMain(Config* config,
|
||||||
QueryDatabase* db,
|
QueryDatabase* db,
|
||||||
|
@ -173,7 +173,7 @@ struct InitializeHandler : BaseMessageHandler<Ipc_InitializeRequest> {
|
|||||||
LOG_S(INFO) << "Starting " << config->indexerCount << " indexers";
|
LOG_S(INFO) << "Starting " << config->indexerCount << " indexers";
|
||||||
for (int i = 0; i < config->indexerCount; ++i) {
|
for (int i = 0; i < config->indexerCount; ++i) {
|
||||||
WorkThread::StartThread("indexer" + std::to_string(i), [=]() {
|
WorkThread::StartThread("indexer" + std::to_string(i), [=]() {
|
||||||
IndexMain(config, file_consumer_shared, timestamp_manager,
|
Indexer_Main(config, file_consumer_shared, timestamp_manager,
|
||||||
import_manager, import_pipeline_status, project,
|
import_manager, import_pipeline_status, project,
|
||||||
working_files, waiter);
|
working_files, waiter);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user