SGSubsystem classes: Registration of all subsystems.

This commit is contained in:
Edward d'Auvergne
2018-05-07 08:49:06 +02:00
parent c11557316d
commit fa754ecaf8
3 changed files with 15 additions and 0 deletions

View File

@@ -1115,3 +1115,9 @@ void SGTerraSync::reposition()
{
// stub, remove
}
// Register the subsystem.
SGSubsystemMgr::Registrant<SGTerraSync> registrantSGTerraSync(
SGSubsystemMgr::GENERAL,
{{"FGRenderer", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}});

View File

@@ -138,3 +138,7 @@ SGPerformanceMonitor::reportTiming(const string& name, SampleStatistic* timeStat
timeStat->reset();
}
// Register the subsystem.
//SGSubsystemMgr::Registrant<SGPerformanceMonitor> registrantSGPerformanceMonitor;

View File

@@ -126,6 +126,11 @@ void SGEventMgr::dump()
_rtQueue.dump();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<SGEventMgr> registrantSGEventMgr(
SGSubsystemMgr::DISPLAY);
////////////////////////////////////////////////////////////////////////
// SGTimerQueue
// This is the priority queue implementation: