1
0
Fork 0

Provide debug information on thread safety of osg::Referenced.

This commit is contained in:
Thomas Geymayer 2013-10-19 01:17:16 +02:00
parent 1e746500dd
commit 6b88302037
2 changed files with 8 additions and 1 deletions

View 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

View file

@ -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() << ")"
);
}