|
ACE
6.3.4
|
#include <Token.h>

Public Member Functions | |
| ACE_Token_Queue_Entry (ACE_Thread_Mutex &m, ACE_thread_t t_id) | |
| Constructor. More... | |
| ACE_Token_Queue_Entry (ACE_Thread_Mutex &m, ACE_thread_t t_id, ACE_Condition_Attributes &attributes) | |
| Constructor using a pre-allocated attributes. More... | |
| int | wait (ACE_Time_Value *timeout, ACE_Thread_Mutex &lock) |
| Entry blocks on the token. More... | |
| int | signal (void) |
| Notify (unblock) the entry. More... | |
Public Attributes | |
| ACE_Token_Queue_Entry * | next_ |
| Pointer to next waiter. More... | |
| ACE_thread_t | thread_id_ |
| ACE_Thread id of this waiter. More... | |
| ACE_Semaphore | cv_ |
| ACE_Semaphore object used to wake up waiter when it can run again. More... | |
| int | runable_ |
| Ok to run. More... | |
The following structure implements a LIFO/FIFO queue of waiter threads that are asleep waiting to obtain the token.
| ACE_Token::ACE_Token_Queue_Entry::ACE_Token_Queue_Entry | ( | ACE_Thread_Mutex & | m, |
| ACE_thread_t | t_id | ||
| ) |
Constructor.
| ACE_Token::ACE_Token_Queue_Entry::ACE_Token_Queue_Entry | ( | ACE_Thread_Mutex & | m, |
| ACE_thread_t | t_id, | ||
| ACE_Condition_Attributes & | attributes | ||
| ) |
Constructor using a pre-allocated attributes.
|
inline |
Notify (unblock) the entry.
|
inline |
Entry blocks on the token.
| ACE_Semaphore ACE_Token::ACE_Token_Queue_Entry::cv_ |
ACE_Semaphore object used to wake up waiter when it can run again.
| ACE_Token_Queue_Entry* ACE_Token::ACE_Token_Queue_Entry::next_ |
Pointer to next waiter.
| int ACE_Token::ACE_Token_Queue_Entry::runable_ |
Ok to run.
| ACE_thread_t ACE_Token::ACE_Token_Queue_Entry::thread_id_ |
ACE_Thread id of this waiter.
1.8.9.1