An ACE_Bound_Ptr_Counter<ACE_LOCK> object encapsulates an object reference count.
More...
#include <Bound_Ptr.h>
template<class ACE_LOCK>
class ACE_Bound_Ptr_Counter< ACE_LOCK >
An ACE_Bound_Ptr_Counter<ACE_LOCK> object encapsulates an object reference count.
Do not use this class directly, use ACE_Strong_Bound_Ptr or ACE_Weak_Bound_Ptr instead.
◆ ACE_Bound_Ptr_Counter()
◆ ~ACE_Bound_Ptr_Counter()
◆ attach_strong()
Increase both the object and counter reference counts and return the new object reference count. A return value of -1 indicates that the object has already been destroyed.
◆ attach_weak()
Increase the counter reference count and return argument.
◆ create_strong()
◆ create_weak()
◆ detach_strong()
Decreases both the object and counter reference counts and deletes whichever has no more references. Returns the new object reference count.
◆ detach_weak()
Decreases the counter reference count and deletes the counter if it has no more references.
◆ internal_create()
◆ object_was_deleted()
Determine whether the object has been deleted.
◆ ACE_ALLOC_HOOK_DECLARE
Declare the dynamic allocation hooks.
◆ lock_
Mutex variable to synchronize access to the reference counts.
◆ obj_ref_count_
Reference count of underlying object. Is set to -1 once the object has been destroyed to indicate to all weak pointers that it is no longer valid.
◆ self_ref_count_
Reference count of this counter.
The documentation for this class was generated from the following files: