ACE 8.0.0
|
Class that acquires, renews, and releases a synchronization token local to the process. More...
#include <Local_Tokens.h>
Protected Member Functions | |
virtual ACE_Tokens * | create_token (const ACE_TCHAR *name) |
Return a new ACE_Local_Mutex. | |
![]() | |
ACE_Token_Proxy (const ACE_Token_Proxy &) | |
Duplication. | |
int | handle_options (ACE_Synch_Options &options, ACE_TOKEN_CONST::COND_VAR &cv) |
Handles cond_var waits. | |
Additional Inherited Members | |
![]() | |
int | ignore_deadlock_ |
If this is set, we ignore deadlock. | |
int | debug_ |
Print a bunch of debug messages. | |
ACE_Tokens * | token_ |
ACE_TSS_TPQ_Entry | waiter_ |
Waiter info used for asynchronous transactions. | |
Class that acquires, renews, and releases a synchronization token local to the process.
This class is a more general-purpose synchronization mechanism than SunOS 5.x mutexes. For example, it implements "recursive mutex" semantics, where a thread that owns the token can reacquire it without deadlocking. In addition, threads that are blocked awaiting the token are serviced in strict FIFO order as other threads release the token (SunOS 5.x mutexes don't strictly enforce an acquisition order). Lastly, ACE_Local_Mutex performs deadlock detection on acquire calls. The interfaces for acquire, tryacquire, renew, release, etc. are defined in ACE_Token_Proxy. The semantics for ACE_Local_Mutex are that of a mutex.
|
inline |
Constructor.
token_name | Uniquely id's the token. |
ignore_deadlock | Will allow deadlock to occur (useful for testing). |
debug | Prints a bunch of messages. |
ACE_Local_Mutex::~ACE_Local_Mutex | ( | ) |
Destructor.
|
virtual |
Return deep copy.
Implements ACE_Token_Proxy.
|
protectedvirtual |
Return a new ACE_Local_Mutex.
Implements ACE_Token_Proxy.
void ACE_Local_Mutex::dump | ( | ) | const |
Dump the state of the class.