From: Thomas Geymayer Date: Fri, 18 Oct 2013 23:17:16 +0000 (+0200) Subject: Provide debug information on thread safety of osg::Referenced. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b88302037889c83ac75c92edbc610f55b84b0ae;p=flightgear.git Provide debug information on thread safety of osg::Referenced. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 12d55fdd1..47817c6f1 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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 diff --git a/src/Scripting/NasalModelData.cxx b/src/Scripting/NasalModelData.cxx index 4d0bda95c..2bf3d03d2 100644 --- a/src/Scripting/NasalModelData.cxx +++ b/src/Scripting/NasalModelData.cxx @@ -87,7 +87,8 @@ FGNasalModelData::FGNasalModelData( SGPropertyNode *root, SG_INFO, "New model with attached script(s) " "(branch = " << branch << "," - " path = " << simgear::getNodePathString(branch) << ")" + " path = " << simgear::getNodePathString(branch) << + " thread-safe = " << branch->getThreadSafeRefUnref() << ")" ); }