|
ACE
6.3.4
|
Wrapper for readers/writer locks that exist within a process. More...
#include <RW_Thread_Mutex.h>


Public Member Functions | |
| ACE_RW_Thread_Mutex (const ACE_TCHAR *name=0, void *arg=0) | |
| ~ACE_RW_Thread_Mutex (void) | |
| Default dtor. More... | |
| int | tryacquire_write_upgrade (void) |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Member Functions inherited from ACE_RW_Mutex | |
| ACE_RW_Mutex (int type=USYNC_THREAD, const ACE_TCHAR *name=0, void *arg=0) | |
| Initialize a readers/writer lock. More... | |
| ~ACE_RW_Mutex (void) | |
| Implicitly destroy a readers/writer lock. More... | |
| int | remove (void) |
| int | acquire_read (void) |
| Acquire a read lock, but block if a writer hold the lock. More... | |
| int | acquire_write (void) |
| int | tryacquire_read (void) |
| int | tryacquire_write (void) |
| Conditionally acquire a write lock (i.e., won't block). More... | |
| int | tryacquire_write_upgrade (void) |
| int | acquire (void) |
| int | tryacquire (void) |
| int | release (void) |
| Unlock a readers/writer lock. More... | |
| const ACE_rwlock_t & | lock (void) const |
| Return the underlying lock. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Public Attributes inherited from ACE_RW_Mutex | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ACE_RW_Mutex | |
| ACE_rwlock_t | lock_ |
| Readers/writer lock. More... | |
| bool | removed_ |
Wrapper for readers/writer locks that exist within a process.
| ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex | ( | const ACE_TCHAR * | name = 0, |
| void * | arg = 0 |
||
| ) |
|
inline |
Default dtor.
| void ACE_RW_Thread_Mutex::dump | ( | void | ) | const |
Dump the state of an object.
|
inline |
Conditionally upgrade a read lock to a write lock. This only works if there are no other readers present, in which case the method returns 0. Otherwise, the method returns -1 and sets errno to EBUSY. Note that the caller of this method must already possess this lock as a read lock (but this condition is not checked by the current implementation).
| ACE_RW_Thread_Mutex::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
1.8.9.1