Changed debug messages to use printf to avoid issues with using notify at startup and exit.
This commit is contained in:
parent
38276b0d92
commit
087559f7a0
@ -171,7 +171,7 @@ Referenced::Referenced():
|
|||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
||||||
++s_numObjects;
|
++s_numObjects;
|
||||||
OSG_NOTICE<<"Object created, total num="<<s_numObjects<<std::endl;
|
printf("Object created, total num=%d\n",s_numObjects);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ Referenced::Referenced(bool threadSafeRefUnref):
|
|||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
||||||
++s_numObjects;
|
++s_numObjects;
|
||||||
OSG_NOTICE<<"Object created, total num="<<s_numObjects<<std::endl;
|
printf("Object created, total num=%d\n",s_numObjects);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -224,7 +224,7 @@ Referenced::Referenced(const Referenced&):
|
|||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
||||||
++s_numObjects;
|
++s_numObjects;
|
||||||
OSG_NOTICE<<"Object created, total num="<<s_numObjects<<std::endl;
|
printf("Object created, total num=%d\n",s_numObjects);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -235,7 +235,7 @@ Referenced::~Referenced()
|
|||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(getNumObjectMutex());
|
||||||
--s_numObjects;
|
--s_numObjects;
|
||||||
OSG_NOTICE<<"Object deleted, total num="<<s_numObjects<<std::endl;
|
printf("Object created, total num=%d\n",s_numObjects);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user