mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Allow to admit caches used in model set loader
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2a083f9113
commit
928dd9f34a
@@ -101,6 +101,11 @@ namespace BlackMisc
|
||||
return this->m_caches.synchronizeCurrentCache();
|
||||
}
|
||||
|
||||
bool CAircraftModelSetLoader::admitCache()
|
||||
{
|
||||
return this->m_caches.admitCurrentCache();
|
||||
}
|
||||
|
||||
bool CAircraftModelSetLoader::hasCachedData() const
|
||||
{
|
||||
return !this->m_caches.getCurrentCachedModels().isEmpty();
|
||||
|
||||
@@ -54,6 +54,9 @@ namespace BlackMisc
|
||||
//! Make sure cache is synchronized
|
||||
bool synchronizeCache();
|
||||
|
||||
//! Admit current cache
|
||||
bool admitCache();
|
||||
|
||||
//! The loaded models
|
||||
//! \threadsafe
|
||||
BlackMisc::Simulation::CAircraftModelList getAircraftModels() const;
|
||||
|
||||
Reference in New Issue
Block a user