#include <ESF_Copy_On_Write.h>
Collaboration diagram for TAO_ESF_Copy_On_Write_Read_Guard< COLLECTION, ITERATOR, ACE_LOCK >:
Public Types | |
typedef TAO_ESF_Copy_On_Write_Collection< COLLECTION, ITERATOR > | Collection |
Constructor. | |
Public Member Functions | |
TAO_ESF_Copy_On_Write_Read_Guard (ACE_LOCK &mutex, Collection *&collection) | |
~TAO_ESF_Copy_On_Write_Read_Guard (void) | |
Destructor. | |
Public Attributes | |
Collection * | collection |
Private Attributes | |
ACE_LOCK & | mutex |
This helper class atomically increments the reference count of a TAO_ESF_Copy_On_Write_Collection and reads the current collection in the Copy_On_Write class.
Definition at line 58 of file ESF_Copy_On_Write.h.
|
Constructor.
Definition at line 62 of file ESF_Copy_On_Write.h. Referenced by TAO_ESF_Copy_On_Write_Read_Guard< COLLECTION, ITERATOR, ACE_LOCK >::TAO_ESF_Copy_On_Write_Read_Guard(). |
|
Definition at line 18 of file ESF_Copy_On_Write.i. References TAO_ESF_Copy_On_Write_Collection< COLLECTION, ITERATOR >::_incr_refcnt(), ACE_GUARD, and TAO_ESF_Copy_On_Write_Read_Guard< COLLECTION, ITERATOR, ACE_LOCK >::Collection.
00020 : collection (0), 00021 mutex (m) 00022 { 00023 ACE_GUARD (ACE_LOCK, ace_mon, this->mutex); 00024 this->collection = collection_ref; 00025 this->collection->_incr_refcnt (); 00026 } |
|
Destructor.
Definition at line 30 of file ESF_Copy_On_Write.i. References TAO_ESF_Copy_On_Write_Collection< COLLECTION, ITERATOR >::_decr_refcnt(), and ACE_GUARD.
00031 { 00032 if (this->collection != 0) 00033 { 00034 ACE_GUARD (ACE_LOCK, ace_mon, this->mutex); 00035 this->collection->_decr_refcnt (); 00036 } 00037 } |
|
Definition at line 69 of file ESF_Copy_On_Write.h. Referenced by TAO_ESF_Copy_On_Write< PROXY, COLLECTION, ITERATOR, >::for_each(). |
|
Definition at line 72 of file ESF_Copy_On_Write.h. |