|
ACE 7.0.7
|
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. More... | |
| ACE_Read_Guard (ACE_LOCK &m, bool block) | |
| int | acquire_read () |
| Explicitly acquire the read lock. More... | |
| int | acquire () |
| Explicitly acquire the read lock. More... | |
| int | tryacquire_read () |
| Conditionally acquire the read lock (i.e., won't block). More... | |
| int | tryacquire () |
| Conditionally acquire the read lock (i.e., won't block). More... | |
| void | dump () const |
| Dump the state of an object. More... | |
Public Member Functions inherited from ACE_Guard< ACE_LOCK > | |
| ACE_Guard (ACE_LOCK &l) | |
| ACE_Guard (ACE_LOCK &l, bool block) | |
| ACE_Guard (ACE_LOCK &l, bool block, int become_owner) | |
| ~ACE_Guard () | |
| Implicitly release the lock. More... | |
| int | acquire () |
| Explicitly acquire the lock. More... | |
| int | tryacquire () |
| Conditionally acquire the lock (i.e., won't block). More... | |
| int | release () |
| Explicitly release the lock, but only if it is held! More... | |
| void | disown () |
| bool | locked () const |
| int | remove () |
| Explicitly remove the lock. More... | |
| void | dump () const |
| Dump the state of an object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ACE_Guard< ACE_LOCK > | |
| ACE_Guard (ACE_LOCK *lock) | |
| Helper, meant for subclass only. More... | |
Protected Attributes inherited from ACE_Guard< ACE_LOCK > | |
| ACE_LOCK * | lock_ |
| Pointer to the ACE_LOCK we're guarding. More... | |
| int | owner_ |
| Keeps track of whether we acquired the lock or failed. More... | |
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).
|
inline |
Implicitly and automatically acquire a read lock.
|
inline |
Implicitly and automatically acquire (or try to acquire) a read lock.
|
inline |
Explicitly acquire the read lock.
|
inline |
Explicitly acquire the read lock.
| void ACE_Read_Guard< ACE_LOCK >::dump |
Dump the state of an object.
|
inline |
Conditionally acquire the read lock (i.e., won't block).
|
inline |
Conditionally acquire the read lock (i.e., won't block).