]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/main.cxx
Provide debug information on thread safety of osg::Referenced.
[flightgear.git] / src / Main / main.cxx
index 12d55fdd1f6e31f79280e51618eb6919d355307d..47817c6f1bdb2febcecc8365e40912763fbf95a8 100644 (file)
@@ -328,6 +328,12 @@ int fgMainInit( int argc, char **argv ) {
     SG_LOG( SG_GENERAL, SG_INFO, "FlightGear:  Version "
             << version );
     SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR << std::endl );
+    SG_LOG( SG_GL,
+            SG_INFO,
+            "osg::Referenced thread safe reference counting is "
+            << (osg::Referenced::getThreadSafeReferenceCounting() ? "enabled"
+                                                                  : "disabled")
+          );
 
     // Allocate global data structures.  This needs to happen before
     // we parse command line options