Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get.

This commit is contained in:
Mathew Sutcliffe
2016-06-06 15:47:11 +01:00
committed by Klaus Basan
parent 332d8e5fc8
commit 9bef6854ca
30 changed files with 83 additions and 83 deletions

View File

@@ -90,13 +90,13 @@ namespace BlackMisc
int CVPilotRulesReader::getModelsCount() const
{
return this->m_cachedVPilotModels.get().size();
return this->m_cachedVPilotModels.getThreadLocal().size();
}
CAircraftModelList CVPilotRulesReader::getAsModels()
{
// already cached?
CAircraftModelList vPilotModels(this->m_cachedVPilotModels.getCopy());
CAircraftModelList vPilotModels(this->m_cachedVPilotModels.get());
if (!vPilotModels.isEmpty() || m_rules.isEmpty()) { return vPilotModels; }
// important: that can take a while and should normally
@@ -109,7 +109,7 @@ namespace BlackMisc
CAircraftModelList CVPilotRulesReader::getAsModelsFromCache() const
{
return this->m_cachedVPilotModels.getCopy();
return this->m_cachedVPilotModels.get();
}
int CVPilotRulesReader::countRulesLoaded() const