Improvements during shutdown

* stop listeners
* check if airspace monitor and FSD still exist
* stop listeners on "aboutToShutdown()"
* check for processEventsFor(500)
This commit is contained in:
Klaus Basan
2020-04-20 20:45:36 +02:00
committed by Mat Sutcliffe
parent 95ca63ce6d
commit 9235f3232e
6 changed files with 139 additions and 38 deletions

View File

@@ -720,8 +720,12 @@ namespace BlackCore
virtual void checkImpl() = 0;
private:
//! swift will shutdown
void onAboutToShutdown();
BlackMisc::Simulation::CSimulatorPluginInfo m_info;
std::atomic_bool m_isRunning { false };
std::atomic_bool m_isRunning { false };
std::atomic_bool m_aboutToShutdown { false }; // swift will shutdown
};
//! Factory pattern class to create instances of ISimulator