ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ACE_Null_Token Class Reference

No op class for nonthreaded platform protocols. More...

#include <Local_Tokens.h>

Inheritance diagram for ACE_Null_Token:
Inheritance graph
[legend]
Collaboration diagram for ACE_Null_Token:
Collaboration graph
[legend]

Public Member Functions

 ACE_Null_Token ()=default
 Construction.
 
 ~ACE_Null_Token ()=default
 Destructor.
 
virtual int acquire (int=0, void(*)(void *)=0, ACE_Synch_Options &=ACE_Synch_Options::defaults)
 Acquire.
 
virtual int renew (int=-1, ACE_Synch_Options &=ACE_Synch_Options::defaults)
 Renew.
 
virtual int tryacquire (void(*)(void *)=0)
 Try acquire.
 
virtual int release (ACE_Synch_Options &=ACE_Synch_Options::defaults)
 Release.
 
virtual int remove (ACE_Synch_Options &=ACE_Synch_Options::defaults)
 Remove.
 
virtual ACE_Token_Proxyclone () const
 Return a dynamically allocated clone of the derived class.
 
void dump () const
 Dump the state of the class.
 
virtual ACE_Tokenscreate_token (const ACE_TCHAR *)
 Do not allow the Token Manager to create us.
 
- Public Member Functions inherited from ACE_Token_Proxy
 ACE_Token_Proxy ()
 Construction.
 
virtual ~ACE_Token_Proxy ()
 Destructor.
 
virtual int open (const ACE_TCHAR *name, int ignore_deadlock=0, int debug=0)
 
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 ()
 
virtual void token_acquired (ACE_TPQ_Entry *)
 
virtual const ACE_TCHARowner_id ()
 The client id of the current token holder.
 
void dump () const
 Dump the state of the class.
 
virtual int type () const
 

Additional Inherited Members

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

No op class for nonthreaded platform protocols.

Constructor & Destructor Documentation

◆ ACE_Null_Token()

ACE_Null_Token::ACE_Null_Token ( )
default

Construction.

◆ ~ACE_Null_Token()

ACE_Null_Token::~ACE_Null_Token ( )
default

Destructor.

Member Function Documentation

◆ acquire()

virtual int ACE_Null_Token::acquire ( int = 0,
void(*)(void *) = 0,
ACE_Synch_Options & = ACE_Synch_Options::defaults )
inlinevirtual

Acquire.

Reimplemented from ACE_Token_Proxy.

◆ clone()

virtual ACE_Token_Proxy * ACE_Null_Token::clone ( ) const
inlinevirtual

Return a dynamically allocated clone of the derived class.

Implements ACE_Token_Proxy.

◆ create_token()

virtual ACE_Tokens * ACE_Null_Token::create_token ( const ACE_TCHAR * )
inlinevirtual

Do not allow the Token Manager to create us.

Implements ACE_Token_Proxy.

◆ dump()

void ACE_Null_Token::dump ( ) const

Dump the state of the class.

◆ release()

virtual int ACE_Null_Token::release ( ACE_Synch_Options & = ACE_Synch_Options::defaults)
inlinevirtual

Release.

Reimplemented from ACE_Token_Proxy.

◆ remove()

virtual int ACE_Null_Token::remove ( ACE_Synch_Options & = ACE_Synch_Options::defaults)
inlinevirtual

Remove.

Reimplemented from ACE_Token_Proxy.

◆ renew()

virtual int ACE_Null_Token::renew ( int = -1,
ACE_Synch_Options & = ACE_Synch_Options::defaults )
inlinevirtual

Renew.

Reimplemented from ACE_Token_Proxy.

◆ tryacquire()

virtual int ACE_Null_Token::tryacquire ( void(*)(void *) = 0)
inlinevirtual

Try acquire.

Reimplemented from ACE_Token_Proxy.


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