#include <Guard_T.h>
Inheritance diagram for ACE_Read_Guard< ACE_LOCK >:
Public Member Functions | |
ACE_Read_Guard (ACE_LOCK &m) | |
Implicitly and automatically acquire a read lock. | |
ACE_Read_Guard (ACE_LOCK &m, int 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. |
Definition at line 163 of file Guard_T.h.
ACE_INLINE ACE_Read_Guard< ACE_LOCK >::ACE_Read_Guard | ( | ACE_LOCK & | m | ) |
Implicitly and automatically acquire a read lock.
Definition at line 153 of file Guard_T.inl.
References ACE_Read_Guard< ACE_LOCK >::acquire_read().
00154 : ACE_Guard<ACE_LOCK> (&m) 00155 { 00156 this->acquire_read (); 00157 }
ACE_INLINE ACE_Read_Guard< ACE_LOCK >::ACE_Read_Guard | ( | ACE_LOCK & | m, | |
int | block | |||
) |
Implicitly and automatically acquire (or try to acquire) a read lock.
Definition at line 160 of file Guard_T.inl.
References ACE_Read_Guard< ACE_LOCK >::acquire_read(), and ACE_Read_Guard< ACE_LOCK >::tryacquire_read().
00162 : ACE_Guard<ACE_LOCK> (&m) 00163 { 00164 if (block) 00165 this->acquire_read (); 00166 else 00167 this->tryacquire_read (); 00168 }
ACE_INLINE int ACE_Read_Guard< ACE_LOCK >::acquire | ( | void | ) |
Explicitly acquire the read lock.
Reimplemented from ACE_Guard< ACE_LOCK >.
Definition at line 135 of file Guard_T.inl.
References ACE_Guard< ACE_LOCK >::lock_, and ACE_Guard< ACE_LOCK >::owner_.
ACE_INLINE int ACE_Read_Guard< ACE_LOCK >::acquire_read | ( | void | ) |
Explicitly acquire the read lock.
Definition at line 129 of file Guard_T.inl.
References ACE_Guard< ACE_LOCK >::lock_, and ACE_Guard< ACE_LOCK >::owner_.
Referenced by ACE_Read_Guard< ACE_LOCK >::ACE_Read_Guard().
void ACE_Read_Guard< ACE_LOCK >::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_Guard< ACE_LOCK >.
Definition at line 53 of file Guard_T.cpp.
References ACE_Guard< ACE_LOCK >::dump().
00054 { 00055 // ACE_TRACE ("ACE_Read_Guard<ACE_LOCK>::dump"); 00056 ACE_Guard<ACE_LOCK>::dump (); 00057 }
ACE_INLINE int ACE_Read_Guard< ACE_LOCK >::tryacquire | ( | void | ) |
Conditionally acquire the read lock (i.e., won't block).
Reimplemented from ACE_Guard< ACE_LOCK >.
Definition at line 147 of file Guard_T.inl.
References ACE_Guard< ACE_LOCK >::lock_, and ACE_Guard< ACE_LOCK >::owner_.
ACE_INLINE int ACE_Read_Guard< ACE_LOCK >::tryacquire_read | ( | void | ) |
Conditionally acquire the read lock (i.e., won't block).
Definition at line 141 of file Guard_T.inl.
References ACE_Guard< ACE_LOCK >::lock_, and ACE_Guard< ACE_LOCK >::owner_.
Referenced by ACE_Read_Guard< ACE_LOCK >::ACE_Read_Guard().