Added mutex locking add addParents/removeParents in Drawable, Node and StateSet.

This commit is contained in:
Robert Osfield
2007-08-31 20:14:36 +00:00
parent 1bc6d0bae4
commit 86e998f64c
4 changed files with 70 additions and 10 deletions

View File

@@ -59,6 +59,9 @@ class OSG_EXPORT Referenced
/** Get whether a mutex is used to ensure ref() and unref() are thread safe.*/
bool getThreadSafeRefUnref() const { return _refMutex!=0; }
/** Get the mutex used to ensure thread safety of ref()/unref(). */
OpenThreads::Mutex* getRefMutex() const { return _refMutex; }
/** Increment the reference count by one, indicating that
this object has another pointer which is referencing it.*/
inline void ref() const;