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

ACE_Remote_WLock Class Reference

Proxy for acquiring, renewing, and releasing a distributed writers lock. More...

#include <Remote_Tokens.h>

Inheritance diagram for ACE_Remote_WLock:

Inheritance graph
[legend]
Collaboration diagram for ACE_Remote_WLock:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Remote_WLock (void)
 ACE_Remote_WLock (const ACE_TCHAR *token_name, int ignore_deadlock=0, int debug=0)
 ACE_Remote_WLock (const ACE_Remote_WLock &mutex)
void dump (void) const
 Dump the state of the class. More...

virtual int type (void) const
 Returns ACE_RW_Token::WLOCK;. 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 Token Manager. More...


Detailed Description

Proxy for acquiring, renewing, and releasing a distributed writers lock.

Shields applications from details of interacting with the ACE_Token_Server. The token_name_ is just the string that the Token Server uses to identify the token. The client_id_ (also used by the Token Server,) identifies the owner of the token and is used for deadlock detection.

Definition at line 240 of file Remote_Tokens.h.


Constructor & Destructor Documentation

ACE_Remote_WLock::ACE_Remote_WLock void   
 

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

ACE_Remote_WLock::ACE_Remote_WLock const ACE_Remote_WLock &    mutex
 


Member Function Documentation

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

Return deep copy.

Implements ACE_Token_Proxy.

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

Make the correct type of ACE_Tokens. This is called by the Token Manager.

Implements ACE_Token_Proxy.

void ACE_Remote_WLock::dump void    const
 

Dump the state of the class.

Reimplemented from ACE_Remote_Token_Proxy.

Definition at line 421 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.

00422 {
00423   ACE_TRACE ("ACE_Remote_WLock::dump");
00424   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00425   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("ACE_Remote_WLock::dump:\n")));
00426   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("base:\n")));
00427   ACE_Remote_Token_Proxy::dump ();
00428   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00429 }

virtual int ACE_Remote_WLock::type void    const [virtual]
 

Returns ACE_RW_Token::WLOCK;.

Reimplemented from ACE_Token_Proxy.


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