| 
    ACE
    6.0.6
    
   
   | 
  
  
  
 
This class is similar to class ACE_Guard, though it acquires/releases a read lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API). More...
#include <Guard_T.h>


Public Member Functions | |
| ACE_Read_Guard (ACE_LOCK &m) | |
| Implicitly and automatically acquire a read lock.   | |
| ACE_Read_Guard (ACE_LOCK &m, bool block) | |
| int | acquire_read (void) | 
| Explicitly acquire the read lock.   | |
| int | acquire (void) | 
| Explicitly acquire the read lock.   | |
| int | tryacquire_read (void) | 
| Conditionally acquire the read lock (i.e., won't block).   | |
| int | tryacquire (void) | 
| Conditionally acquire the read lock (i.e., won't block).   | |
| void | dump (void) const | 
| Dump the state of an object.   | |
This class is similar to class ACE_Guard, though it acquires/releases a read lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API).
| ACE_Read_Guard::ACE_Read_Guard | ( | ACE_LOCK & | m | ) | 
Implicitly and automatically acquire a read lock.
| ACE_Read_Guard::ACE_Read_Guard | ( | ACE_LOCK & | m, | 
| bool | block | ||
| ) | 
Implicitly and automatically acquire (or try to acquire) a read lock.
| int ACE_Read_Guard::acquire | ( | void | ) | 
Explicitly acquire the read lock.
Reimplemented from ACE_Guard< ACE_LOCK >.
| int ACE_Read_Guard::acquire_read | ( | void | ) | 
Explicitly acquire the read lock.
| void ACE_Read_Guard::dump | ( | void | ) | const | 
Dump the state of an object.
Reimplemented from ACE_Guard< ACE_LOCK >.
| int ACE_Read_Guard::tryacquire | ( | void | ) | 
Conditionally acquire the read lock (i.e., won't block).
Reimplemented from ACE_Guard< ACE_LOCK >.
| int ACE_Read_Guard::tryacquire_read | ( | void | ) | 
Conditionally acquire the read lock (i.e., won't block).
 1.7.5