mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
ref #803, do not use synchronize from another thread
* changed info component to use admit * removed web service synchronize
This commit is contained in:
@@ -175,16 +175,9 @@ namespace BlackCore
|
||||
return (this->getModelsCount() > 0) && (this->getLiveriesCount() > 0) && (this->getDistributorsCount() > 0) && (this->getAircraftIcaoCodesCount() > 0);
|
||||
}
|
||||
|
||||
void CWebDataServices::synchronizeDbCaches(CEntityFlags::Entity entities)
|
||||
{
|
||||
if (this->m_infoDataReader) { this->m_infoDataReader->synchronizeCaches(entities); }
|
||||
if (this->m_modelDataReader) { this->m_modelDataReader->synchronizeCaches(entities); }
|
||||
if (this->m_icaoDataReader) { this->m_icaoDataReader->synchronizeCaches(entities); }
|
||||
if (this->m_airportDataReader) { this->m_airportDataReader->synchronizeCaches(entities); }
|
||||
}
|
||||
|
||||
void CWebDataServices::admitDbCaches(CEntityFlags::Entity entities)
|
||||
{
|
||||
// hint: all the readers use own threads
|
||||
if (this->m_infoDataReader) { this->m_infoDataReader->admitCaches(entities); }
|
||||
if (this->m_modelDataReader) { this->m_modelDataReader->admitCaches(entities); }
|
||||
if (this->m_icaoDataReader) { this->m_icaoDataReader->admitCaches(entities); }
|
||||
|
||||
@@ -349,9 +349,6 @@ namespace BlackCore
|
||||
//! All DB data for an aircraft entity available?
|
||||
bool hasDbAircraftData() const;
|
||||
|
||||
//! Synchronize all DB caches
|
||||
void synchronizeDbCaches(BlackMisc::Network::CEntityFlags::Entity entities);
|
||||
|
||||
//! Admit all DB caches
|
||||
void admitDbCaches(BlackMisc::Network::CEntityFlags::Entity entities);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user