ACE
6.4.2
|
Token Proxy Queue entry. Used in the ACE_Token_Proxy_Queue. More...
#include <Local_Tokens.h>
Public Types | |
typedef void(* | PTVF) (void *) |
Public Member Functions | |
ACE_TPQ_Entry (void) | |
Null constructor. More... | |
ACE_TPQ_Entry (const ACE_Token_Proxy *proxy, const ACE_TCHAR *client_id) | |
Constructor. More... | |
ACE_TPQ_Entry (const ACE_TPQ_Entry &rhs) | |
Copy constructor. More... | |
~ACE_TPQ_Entry (void) | |
Destructor. More... | |
void | operator= (const ACE_TPQ_Entry &rhs) |
Copy operator use by the queue. More... | |
ACE_Token_Proxy * | proxy (void) const |
Get top of the queue. More... | |
void | proxy (ACE_Token_Proxy *) |
Set top of the queue. More... | |
int | nesting_level (void) const |
Get nesting level of the entry. More... | |
void | nesting_level (int delta) |
Delta nesting level of the entry. More... | |
const ACE_TCHAR * | client_id (void) const |
Get client_id of the entry. More... | |
void | client_id (const ACE_TCHAR *) |
Set client_id of the entry. More... | |
int | equal_client_id (const ACE_TCHAR *id) |
Returns 1 if id == client id. Does not check for id == 0. More... | |
void | set (void(*sleep_hook)(void *)) |
One method for arg and sleep_hook. More... | |
void | sleep_hook (void(*sh)(void *)) |
Set sleep hook of the entry. More... | |
PTVF | sleep_hook (void) const |
Get sleep hook of the entry. More... | |
void | call_sleep_hook (void) |
Call the sleep hook function or method passing arg. More... | |
void | dump (void) const |
Dump the state of the class. More... | |
int | waiting (void) const |
Get whether this client is blocked waiting for a token. More... | |
void | waiting (int w) |
Set whether this client is blocked waiting for a token. More... | |
Public Attributes | |
ACE_TOKEN_CONST::COND_VAR | cond_var_ |
ACE_TOKEN_CONST::MUTEX | lock_ |
ACE_TPQ_Entry * | next_ |
Pointer to next in list. More... | |
Private Attributes | |
int | waiting_ |
This client is waiting for a token. More... | |
ACE_Token_Proxy * | proxy_ |
Proxy. More... | |
int | nesting_level_ |
Nesting level. More... | |
void * | arg_ |
Arg. More... | |
ACE_TCHAR | client_id_ [ACE_MAXCLIENTIDLEN] |
Client id. More... | |
void(* | sleep_hook_ )(void *) |
Sleep hook. More... | |
Friends | |
class | ACE_Token_Manager |
Token Proxy Queue entry. Used in the ACE_Token_Proxy_Queue.
Not a public interface.
typedef void(* ACE_TPQ_Entry::PTVF) (void *) |
ACE_TPQ_Entry::ACE_TPQ_Entry | ( | void | ) |
Null constructor.
ACE_TPQ_Entry::ACE_TPQ_Entry | ( | const ACE_Token_Proxy * | proxy, |
const ACE_TCHAR * | client_id | ||
) |
Constructor.
ACE_TPQ_Entry::ACE_TPQ_Entry | ( | const ACE_TPQ_Entry & | rhs | ) |
Copy constructor.
ACE_TPQ_Entry::~ACE_TPQ_Entry | ( | void | ) |
Destructor.
|
inline |
Call the sleep hook function or method passing arg.
|
inline |
Get client_id of the entry.
void ACE_TPQ_Entry::client_id | ( | const ACE_TCHAR * | id | ) |
Set client_id of the entry.
void ACE_TPQ_Entry::dump | ( | void | ) | const |
Dump the state of the class.
|
inline |
Returns 1 if id == client id. Does not check for id == 0.
|
inline |
Get nesting level of the entry.
|
inline |
Delta nesting level of the entry.
void ACE_TPQ_Entry::operator= | ( | const ACE_TPQ_Entry & | rhs | ) |
Copy operator use by the queue.
|
inline |
Get top of the queue.
|
inline |
Set top of the queue.
void ACE_TPQ_Entry::set | ( | void(*)(void *) | sleep_hook | ) |
One method for arg and sleep_hook.
|
inline |
Set sleep hook of the entry.
|
inline |
Get sleep hook of the entry.
|
inline |
Get whether this client is blocked waiting for a token.
|
inline |
Set whether this client is blocked waiting for a token.
|
friend |
|
private |
Arg.
|
private |
Client id.
ACE_TOKEN_CONST::COND_VAR ACE_TPQ_Entry::cond_var_ |
ACE_TOKEN_CONST::MUTEX ACE_TPQ_Entry::lock_ |
|
private |
Nesting level.
ACE_TPQ_Entry* ACE_TPQ_Entry::next_ |
Pointer to next in list.
|
private |
Proxy.
|
private |
Sleep hook.
|
private |
This client is waiting for a token.