Changed debug messages to use printf to avoid issues with using notify at startup and exit.

This commit is contained in:
Robert Osfield 2010-04-30 10:51:27 +00:00
parent 38276b0d92
commit 087559f7a0

View File

@ -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