Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

void PSafeObject::SafeRemove (  ) 

Set the removed flag. This flags the object as beeing removed but does not physically delete the memory being used by it. The SafelyCanBeDeleted() can then be used to determine when all references to the object have been released so it may be safely deleted.

This is typically used by the PSafeCollection class and is not expected to be used directly by an application.

Definition at line 184 of file safecoll.cxx.

{
  safetyMutex.Wait();
  safelyBeingRemoved = TRUE;
  safetyMutex.Signal();
}


Generated by  Doxygen 1.6.0   Back to index