Added a Refrenced::getGlobalReferencedMutex, and OpenThreads::ScopedPointerLock() and use of this in add/removeParent() codes
to avoid threading problems when using atomic ref counting.
This commit is contained in:
@@ -79,6 +79,12 @@ struct DeleteHandlerPointer
|
||||
DeleteHandler* _ptr;
|
||||
};
|
||||
|
||||
OpenThreads::Mutex* Referenced::getGlobalReferencedMutex()
|
||||
{
|
||||
return 0;
|
||||
// static OpenThreads::Mutex s_ReferencedGlobalMutext;
|
||||
// return &s_ReferencedGlobalMutext;
|
||||
}
|
||||
|
||||
typedef std::set<Observer*> ObserverSet;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user