mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
8fef86c0f8
ImportPipelineStatus::num_active_threads can be used instead.
15 lines
428 B
C++
15 lines
428 B
C++
#include "import_manager.h"
|
|
|
|
bool ImportManager::TryMarkDependencyImported(const std::string& path) {
|
|
std::lock_guard<std::mutex> lock(depdency_mutex_);
|
|
return depdency_imported_.insert(path).second;
|
|
}
|
|
|
|
bool ImportManager::StartQueryDbImport(const std::string& path) {
|
|
return querydb_processing_.insert(path).second;
|
|
}
|
|
|
|
void ImportManager::DoneQueryDbImport(const std::string& path) {
|
|
querydb_processing_.erase(path);
|
|
}
|