Provide debug information on thread safety of osg::Referenced.
This commit is contained in:
parent
1e746500dd
commit
6b88302037
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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() << ")"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue