From fa754ecaf8f936e2334fd280e8a03c9bdbe6b0e4 Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Mon, 7 May 2018 08:49:06 +0200 Subject: [PATCH] SGSubsystem classes: Registration of all subsystems. --- simgear/scene/tsync/terrasync.cxx | 6 ++++++ simgear/structure/SGPerfMon.cxx | 4 ++++ simgear/structure/event_mgr.cxx | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 69e381f2..a1715097 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -1115,3 +1115,9 @@ void SGTerraSync::reposition() { // stub, remove } + + +// Register the subsystem. +SGSubsystemMgr::Registrant registrantSGTerraSync( + SGSubsystemMgr::GENERAL, + {{"FGRenderer", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}}); diff --git a/simgear/structure/SGPerfMon.cxx b/simgear/structure/SGPerfMon.cxx index c4d7caed..da754cab 100644 --- a/simgear/structure/SGPerfMon.cxx +++ b/simgear/structure/SGPerfMon.cxx @@ -138,3 +138,7 @@ SGPerformanceMonitor::reportTiming(const string& name, SampleStatistic* timeStat timeStat->reset(); } + + +// Register the subsystem. +//SGSubsystemMgr::Registrant registrantSGPerformanceMonitor; diff --git a/simgear/structure/event_mgr.cxx b/simgear/structure/event_mgr.cxx index 9d0e0ae0..2160d6c3 100644 --- a/simgear/structure/event_mgr.cxx +++ b/simgear/structure/event_mgr.cxx @@ -126,6 +126,11 @@ void SGEventMgr::dump() _rtQueue.dump(); } +// Register the subsystem. +SGSubsystemMgr::Registrant registrantSGEventMgr( + SGSubsystemMgr::DISPLAY); + + //////////////////////////////////////////////////////////////////////// // SGTimerQueue // This is the priority queue implementation: