ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
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]

Public Member Functions

 ACE_Remote_WLock ()
 
 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 () const
 Dump the state of the class.
 
virtual int type () const
 Returns ACE_RW_Token::WLOCK;.
 
virtual ACE_Token_Proxyclone () const
 Return deep copy.
 
- Public Member Functions inherited from ACE_Remote_Token_Proxy
 ACE_Remote_Token_Proxy ()
 Null construction.
 
virtual ~ACE_Remote_Token_Proxy ()
 Death.
 
int open (const ACE_TCHAR *name, int ignore_deadlock=0, int debug=0)
 
int initiate_connection ()
 
virtual int acquire (int notify=0, void(*sleep_hook)(void *)=0, ACE_Synch_Options &options=ACE_Synch_Options::synch)
 
virtual int tryacquire (void(*sleep_hook)(void *)=0)
 
virtual int renew (int requeue_position=0, ACE_Synch_Options &options=ACE_Synch_Options::synch)
 
virtual int release (ACE_Synch_Options &options=ACE_Synch_Options::synch)
 
virtual int remove (ACE_Synch_Options &options=ACE_Synch_Options::synch)
 
virtual void token_acquired (ACE_TPQ_Entry *)
 Override the default to do nothing.
 
virtual const ACE_TCHARowner_id ()
 The client id of the current token holder.
 
void dump () const
 Dump the state of the class.
 
- Public Member Functions inherited from ACE_Token_Proxy
 ACE_Token_Proxy ()
 Construction.
 
virtual ~ACE_Token_Proxy ()
 Destructor.
 
virtual int acquire_read (int notify=0, void(*sleep_hook)(void *)=0, ACE_Synch_Options &options=ACE_Synch_Options::defaults)
 
virtual int acquire_write (int notify=0, void(*sleep_hook)(void *)=0, ACE_Synch_Options &options=ACE_Synch_Options::defaults)
 
virtual int tryacquire_read (void(*sleep_hook)(void *)=0)
 
virtual int tryacquire_write (void(*sleep_hook)(void *)=0)
 
virtual const ACE_TCHARclient_id () const
 
virtual void client_id (const ACE_TCHAR *client_id)
 
virtual const ACE_TCHARname () const
 
virtual void sleep_hook ()
 
void dump () const
 Dump the state of the class.
 

Protected Member Functions

virtual ACE_Tokenscreate_token (const ACE_TCHAR *name)
 
- Protected Member Functions inherited from ACE_Remote_Token_Proxy
int request_reply (ACE_Token_Request &request, ACE_Synch_Options &options)
 Perform the request and wait for the reply.
 
- Protected Member Functions inherited from ACE_Token_Proxy
 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

- Static Public Member Functions inherited from ACE_Remote_Token_Proxy
static void set_server_address (const ACE_INET_Addr &server_address)
 
- Protected Attributes inherited from ACE_Remote_Token_Proxy
int ignore_shadow_deadlock_
 If shadows report deadlock, go remote anyway.
 
- Protected Attributes inherited from ACE_Token_Proxy
int ignore_deadlock_
 If this is set, we ignore deadlock.
 
int debug_
 Print a bunch of debug messages.
 
ACE_Tokenstoken_
 
ACE_TSS_TPQ_Entry waiter_
 Waiter info used for asynchronous transactions.
 

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.

Constructor & Destructor Documentation

◆ ACE_Remote_WLock() [1/3]

ACE_Remote_WLock::ACE_Remote_WLock ( )

◆ ACE_Remote_WLock() [2/3]

ACE_Remote_WLock::ACE_Remote_WLock ( const ACE_TCHAR * token_name,
int ignore_deadlock = 0,
int debug = 0 )
inline

◆ ACE_Remote_WLock() [3/3]

ACE_Remote_WLock::ACE_Remote_WLock ( const ACE_Remote_WLock & mutex)

Member Function Documentation

◆ clone()

ACE_Token_Proxy * ACE_Remote_WLock::clone ( ) const
virtual

Return deep copy.

Implements ACE_Token_Proxy.

◆ create_token()

ACE_Tokens * ACE_Remote_WLock::create_token ( const ACE_TCHAR * name)
protectedvirtual

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

Implements ACE_Token_Proxy.

◆ dump()

void ACE_Remote_WLock::dump ( ) const

Dump the state of the class.

◆ type()

int ACE_Remote_WLock::type ( ) const
virtual

Returns ACE_RW_Token::WLOCK;.

Reimplemented from ACE_Token_Proxy.


The documentation for this class was generated from the following files: