Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Write_Guard Class Template Reference

This class is similar to class , though it acquires/releases a write lock automatically (naturally, the it is instantiated with must support the appropriate API). More...

#include <Synch_T.h>

Inheritance diagram for ACE_Write_Guard

Inheritance graph
[legend]
Collaboration diagram for ACE_Write_Guard:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Write_Guard (ACE_LOCK &m)
 Implicitly and automatically acquire a write lock.

 ACE_Write_Guard (ACE_LOCK &m, int block)
 Implicitly and automatically acquire (or try to acquire) a write lock.

int acquire_write (void)
 Explicitly acquire the write lock.

int acquire (void)
 Explicitly acquire the write lock.

int tryacquire_write (void)
 Conditionally acquire the write lock (i.e., won't block).

int tryacquire (void)
 Conditionally acquire the write lock (i.e., won't block).

void dump (void) const
 Dump the state of an object.


Detailed Description

template<class ACE_LOCK> template class ACE_Write_Guard

This class is similar to class , though it acquires/releases a write lock automatically (naturally, the it is instantiated with must support the appropriate API).


Constructor & Destructor Documentation

template<classACE_LOCK>
ACE_INLINE ACE_Write_Guard< ACE_LOCK >::ACE_Write_Guard<ACE_LOCK> ( ACE_LOCK & m )
 

Implicitly and automatically acquire a write lock.

template<classACE_LOCK>
ACE_INLINE ACE_Write_Guard< ACE_LOCK >::ACE_Write_Guard<ACE_LOCK> ( ACE_LOCK & m,
int block )
 

Implicitly and automatically acquire (or try to acquire) a write lock.


Member Function Documentation

template<classACE_LOCK>
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::acquire ( void )
 

Explicitly acquire the write lock.

Reimplemented from ACE_Guard.

template<classACE_LOCK>
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::acquire_write ( void )
 

Explicitly acquire the write lock.

template<classACE_LOCK>
void ACE_Write_Guard<ACE_LOCK>::dump ( void ) const
 

Dump the state of an object.

Reimplemented from ACE_Guard.

template<classACE_LOCK>
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::tryacquire ( void )
 

Conditionally acquire the write lock (i.e., won't block).

Reimplemented from ACE_Guard.

template<classACE_LOCK>
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::tryacquire_write ( void )
 

Conditionally acquire the write lock (i.e., won't block).


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 10:35:17 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000