Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Remote_Mutex Class Reference

Proxy for acquiring, renewing, and releasing a distributed mutex. More...

#include <Remote_Tokens.h>

Inheritance diagram for ACE_Remote_Mutex:

Inheritance graph
[legend]
Collaboration diagram for ACE_Remote_Mutex:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Remote_Mutex (void)
 Null creation. Remote_Token_Proxy::open must be called. More...

 ACE_Remote_Mutex (const ACE_TCHAR *token_name, int ignore_deadlock=0, int debug=0)
 Calls Remote_Token_Proxy::open for you. More...

void dump (void) const
 Dump the state of the class. More...

virtual ACE_Token_Proxyclone (void) const
 Return deep copy. More...


Protected Methods

virtual ACE_Tokenscreate_token (const ACE_TCHAR *name)
 Make the correct type of ACE_Tokens. This is called by the ACE_Token_Manager. More...


Detailed Description

Proxy for acquiring, renewing, and releasing a distributed mutex.

This is the remote equivalent to ACE_Local_Mutex. The Remote_Mutex class offers methods for acquiring, renewing, and releasing a distributed synchronization mutex. Similar to ACE_Local_Mutex, ACE_Remote_Token_Proxy offers recursive acquisition, FIFO waiter ordering, and deadlock detection. It depends on the Token Server for its distributed synchronization semantics.

Definition at line 166 of file Remote_Tokens.h.


Constructor & Destructor Documentation

ACE_Remote_Mutex::ACE_Remote_Mutex void   
 

Null creation. Remote_Token_Proxy::open must be called.

ACE_Remote_Mutex::ACE_Remote_Mutex const ACE_TCHAR   token_name,
int    ignore_deadlock = 0,
int    debug = 0
 

Calls Remote_Token_Proxy::open for you.


Member Function Documentation

virtual ACE_Token_Proxy* ACE_Remote_Mutex::clone void    const [virtual]
 

Return deep copy.

Implements ACE_Token_Proxy.

virtual ACE_Tokens* ACE_Remote_Mutex::create_token const ACE_TCHAR   name [protected, virtual]
 

Make the correct type of ACE_Tokens. This is called by the ACE_Token_Manager.

Implements ACE_Token_Proxy.

void ACE_Remote_Mutex::dump void    const
 

Dump the state of the class.

Reimplemented from ACE_Remote_Token_Proxy.

Definition at line 399 of file Remote_Tokens.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, ACE_Remote_Token_Proxy::dump, and LM_DEBUG.

00400 {
00401   ACE_TRACE ("ACE_Remote_Mutex::dump");
00402   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00403   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("ACE_Remote_Mutex::dump:\n")));
00404   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("base:\n")));
00405   ACE_Remote_Token_Proxy::dump ();
00406   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00407 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:16 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002