ccls/src/import_manager.cc

15 lines
432 B
C++
Raw Normal View History

#include "import_manager.h"
bool ImportManager::TryMarkDependencyImported(const std::string& path) {
2018-01-18 06:10:11 +00:00
std::lock_guard<std::mutex> lock(dependency_mutex_);
return dependency_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);
}