#include <ESF_RefCount_Guard.h>
Collaboration diagram for TAO_ESF_RefCount_Guard< T >:

Public Member Functions | |
| TAO_ESF_RefCount_Guard (T &refcount) | |
| Constructor. | |
| ~TAO_ESF_RefCount_Guard (void) | |
| Destructor. | |
Protected Attributes | |
| T & | refcount_ |
| The reference count. | |
A common idiom used on event services is to increment a reference count before starting a long running operation. The system can then execute the operation without any risk of having the underlying object destroyed. The advantage of using a reference count is that no mutex or lock needs to be held while the operation is beign executed.
Definition at line 39 of file ESF_RefCount_Guard.h.
| TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_ESF_RefCount_Guard< T >::TAO_ESF_RefCount_Guard | ( | T & | refcount | ) |
Constructor.
Definition at line 9 of file ESF_RefCount_Guard.inl.
References TAO_ESF_RefCount_Guard< T >::refcount_.
| ACE_INLINE TAO_ESF_RefCount_Guard< T >::~TAO_ESF_RefCount_Guard | ( | void | ) |
Destructor.
Definition at line 17 of file ESF_RefCount_Guard.inl.
References TAO_ESF_RefCount_Guard< T >::refcount_.
00018 { 00019 --this->refcount_; 00020 }
T& TAO_ESF_RefCount_Guard< T >::refcount_ [protected] |
The reference count.
Definition at line 50 of file ESF_RefCount_Guard.h.
Referenced by TAO_ESF_RefCount_Guard< T >::TAO_ESF_RefCount_Guard(), and TAO_ESF_RefCount_Guard< T >::~TAO_ESF_RefCount_Guard().
1.4.7