ACE_Mutex
wrapper (valid in same process or across processes (depending on TYPE flag)).
More...
#include <Mutex.h>
Public Member Functions | |
ACE_Mutex (int type=USYNC_THREAD, const ACE_TCHAR *name=0, ACE_mutexattr_t *arg=0, mode_t mode=ACE_DEFAULT_FILE_PERMS) | |
Initialize the mutex. | |
~ACE_Mutex (void) | |
Implicitly destroy the mutex. | |
int | remove (void) |
Explicitly destroy the mutex. | |
int | acquire (void) |
Acquire lock ownership (wait on queue if necessary). | |
int | acquire (ACE_Time_Value &tv) |
int | acquire (ACE_Time_Value *tv) |
int | tryacquire (void) |
Conditionally acquire lock (i.e., don't wait on queue). | |
int | release (void) |
Release lock and unblock a thread at head of queue. | |
int | acquire_read (void) |
Acquire mutex ownership. | |
int | acquire_write (void) |
Acquire mutex ownership. | |
int | tryacquire_read (void) |
Conditionally acquire mutex (i.e., won't block). | |
int | tryacquire_write (void) |
Conditionally acquire mutex (i.e., won't block). | |
int | tryacquire_write_upgrade (void) |
const ACE_mutex_t & | lock (void) const |
Return the underlying mutex. | |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
ACE_mutex_t | lock_ |
Mutex type supported by the OS. | |
int | removed_ |
Private Member Functions | |
void | operator= (const ACE_Mutex &) |
ACE_Mutex (const ACE_Mutex &) |
ACE_Mutex
wrapper (valid in same process or across processes (depending on TYPE flag)).
|
Initialize the mutex.
|
|
Implicitly destroy the mutex.
|
|
|
|
If tv == 0 then call
|
|
|
|
Acquire lock ownership (wait on queue if necessary).
|
|
Acquire mutex ownership.
This calls |
|
Acquire mutex ownership.
This calls |
|
Dump the state of an object.
|
|
Return the underlying mutex.
|
|
|
|
Release lock and unblock a thread at head of queue.
|
|
Explicitly destroy the mutex.
|
|
Conditionally acquire lock (i.e., don't wait on queue).
|
|
Conditionally acquire mutex (i.e., won't block).
This calls
|
|
Conditionally acquire mutex (i.e., won't block).
This calls
|
|
This is only here for consistency with the other synchronization APIs and usability with Lock adapters. Assumes the caller already has acquired the mutex and returns 0 in all cases. |
|
Declare the dynamic allocation hooks.
|
|
Mutex type supported by the OS.
|
|
Keeps track of whether |