#include <RMCast_Copy_On_Write.h>
Collaboration diagram for ACE_RMCast_Copy_On_Write_Write_Guard:

Public Types | |
| typedef ACE_RMCast_Copy_On_Write_Collection< COLLECTION,ITERATOR> | Collection |
| typedef ACE_RMCast_Copy_On_Write_Container< COLLECTION,ITERATOR> | Container |
Public Methods | |
| ACE_RMCast_Copy_On_Write_Write_Guard (Container &container) | |
| Constructor. | |
| ~ACE_RMCast_Copy_On_Write_Write_Guard (void) | |
| Destructor. | |
Public Attributes | |
| Collection* | copy |
| The collection. | |
Private Attributes | |
| ACE_SYNCH_MUTEX& | mutex |
| Keep a reference to the mutex. | |
| ACE_SYNCH_CONDITION& | cond |
| Keep a reference to the condition variable. | |
| int& | pending_writes |
| Use a reference to update the pending writes count. | |
| int& | writing_flag |
| Use a reference to update the writing flag. | |
| Collection*& | collection |
| Use this reference to update the collection once the modifications are finished. | |
This helper class atomically increments the reference count of a ACE_RMCast_Copy_On_Write_Collection and reads the current collection in the Copy_On_Write class.
|
|||
|
|
|
|||
|
|
|
||||
|
Constructor.
|
|
||||
|
Destructor.
|
|
|||
|
Use this reference to update the collection once the modifications are finished.
|
|
|||
|
Keep a reference to the condition variable.
|
|
|||
|
The collection.
|
|
|||
|
Keep a reference to the mutex.
|
|
|||
|
Use a reference to update the pending writes count.
|
|
|||
|
Use a reference to update the writing flag.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000