This class is similar to class ACE_Guard, though it acquires/releases a write lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API).
More...
#include <Guard_T.h>
|
| ACE_Write_Guard (ACE_LOCK &m) |
| Implicitly and automatically acquire a write lock.
|
|
| ACE_Write_Guard (ACE_LOCK &m, bool block) |
|
int | acquire_write () |
| Explicitly acquire the write lock.
|
|
int | acquire () |
| Explicitly acquire the write lock.
|
|
int | tryacquire_write () |
| Conditionally acquire the write lock (i.e., won't block).
|
|
int | tryacquire () |
| Conditionally acquire the write lock (i.e., won't block).
|
|
void | dump () const |
| Dump the state of an object.
|
|
| 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.
|
|
int | acquire () |
| Explicitly acquire the lock.
|
|
int | tryacquire () |
| Conditionally acquire the lock (i.e., won't block).
|
|
int | release () |
| Explicitly release the lock, but only if it is held!
|
|
void | disown () |
|
bool | locked () const |
|
int | remove () |
| Explicitly remove the lock.
|
|
void | dump () const |
| Dump the state of an object.
|
|
|
| ACE_Guard (ACE_LOCK *lock) |
| Helper, meant for subclass only.
|
|
ACE_LOCK * | lock_ |
| Pointer to the ACE_LOCK we're guarding.
|
|
int | owner_ |
| Keeps track of whether we acquired the lock or failed.
|
|
template<class ACE_LOCK>
class ACE_Write_Guard< ACE_LOCK >
This class is similar to class ACE_Guard, though it acquires/releases a write lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API).
- Warning
- See important "WARNING" in comments at top of ACE_Guard.
◆ ACE_Write_Guard() [1/2]
template<class ACE_LOCK >
Implicitly and automatically acquire a write lock.
◆ ACE_Write_Guard() [2/2]
template<class ACE_LOCK >
Implicitly and automatically acquire (or try to acquire) a write lock.
◆ acquire()
template<class ACE_LOCK >
Explicitly acquire the write lock.
◆ acquire_write()
template<class ACE_LOCK >
Explicitly acquire the write lock.
◆ dump()
template<class ACE_LOCK >
Dump the state of an object.
◆ tryacquire()
template<class ACE_LOCK >
Conditionally acquire the write lock (i.e., won't block).
◆ tryacquire_write()
template<class ACE_LOCK >
Conditionally acquire the write lock (i.e., won't block).
The documentation for this class was generated from the following files: