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 Member Functions

 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.

virtual int type (void) const
 Returns ACE_RW_Token::WLOCK;.

virtual ACE_Token_Proxyclone (void) const
 Return deep copy.


Protected Member Functions

virtual ACE_Tokenscreate_token (const ACE_TCHAR *name)

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 243 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

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

Return deep copy.

Implements ACE_Token_Proxy.

Definition at line 501 of file Remote_Tokens.cpp.

References ACE_NEW_RETURN.

00502 {
00503   ACE_Token_Proxy *temp = 0;
00504   ACE_NEW_RETURN (temp,
00505                   ACE_Remote_WLock (this->name (),
00506                                     ignore_deadlock_,
00507                                     debug_),
00508                   0);
00509   return temp;
00510 }

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.

Definition at line 485 of file Remote_Tokens.cpp.

References ACE_NEW_RETURN, and ACE_TCHAR.

00486 {
00487   ACE_Tokens *temp = 0;
00488   ACE_NEW_RETURN (temp,
00489                   ACE_RW_Token (name),
00490                   0);
00491   return temp;
00492 }

void ACE_Remote_WLock::dump void   )  const
 

Dump the state of the class.

Reimplemented from ACE_Remote_Token_Proxy.

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

00514 {
00515 #if defined (ACE_HAS_DUMP)
00516   ACE_TRACE ("ACE_Remote_WLock::dump");
00517   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00518   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("ACE_Remote_WLock::dump:\n")));
00519   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("base:\n")));
00520   ACE_Remote_Token_Proxy::dump ();
00521   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00522 #endif /* ACE_HAS_DUMP */
00523 }

int ACE_Remote_WLock::type void   )  const [virtual]
 

Returns ACE_RW_Token::WLOCK;.

Reimplemented from ACE_Token_Proxy.

Definition at line 495 of file Remote_Tokens.cpp.

00496 {
00497   return ACE_RW_Token::WRITER;
00498 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:28:17 2006 for ACE by doxygen 1.3.6