mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Remove ImportManager::HasActiveQuerydbImports.
ImportPipelineStatus::num_active_threads can be used instead.
This commit is contained in:
parent
0fd3d69600
commit
8fef86c0f8
@ -12,7 +12,3 @@ bool ImportManager::StartQueryDbImport(const std::string& path) {
|
||||
void ImportManager::DoneQueryDbImport(const std::string& path) {
|
||||
querydb_processing_.erase(path);
|
||||
}
|
||||
|
||||
bool ImportManager::HasActiveQuerydbImports() {
|
||||
return !querydb_processing_.empty();
|
||||
}
|
@ -21,9 +21,6 @@ struct ImportManager {
|
||||
// The file has been fully imported and can be imported again later on.
|
||||
void DoneQueryDbImport(const std::string& path);
|
||||
|
||||
// Returns true if there any any files currently being imported.
|
||||
bool HasActiveQuerydbImports();
|
||||
|
||||
std::unordered_set<std::string> querydb_processing_;
|
||||
|
||||
// TODO: use std::shared_mutex so we can have multiple readers.
|
||||
|
@ -23,7 +23,6 @@ struct CqueryWaitHandler : MessageHandler {
|
||||
while (true) {
|
||||
bool has_work = false;
|
||||
has_work |= import_pipeline_status->num_active_threads != 0;
|
||||
has_work |= import_manager->HasActiveQuerydbImports();
|
||||
has_work |= QueueManager::instance()->HasWork();
|
||||
has_work |=
|
||||
QueryDb_ImportMain(config, db, import_manager, import_pipeline_status,
|
||||
|
Loading…
Reference in New Issue
Block a user