#include <Token.h>
Public Member Functions | |
ACE_Token_Queue_Entry (ACE_Thread_Mutex &m, ACE_thread_t t_id) | |
Constructor. | |
ACE_Token_Queue_Entry (ACE_Thread_Mutex &m, ACE_thread_t t_id, ACE_Condition_Attributes &attributes) | |
Constructor using a pre-allocated attributes. | |
int | wait (ACE_Time_Value *timeout, ACE_Thread_Mutex &lock) |
Entry blocks on the token. | |
int | signal (void) |
Notify (unblock) the entry. | |
Public Attributes | |
ACE_Token_Queue_Entry * | next_ |
Pointer to next waiter. | |
ACE_thread_t | thread_id_ |
ACE_Thread id of this waiter. | |
ACE_Semaphore | cv_ |
ACE_Semaphore object used to wake up waiter when it can run again. | |
int | runable_ |
Ok to run. |
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.
ACE_INLINE int ACE_Token::ACE_Token_Queue_Entry::wait | ( | ACE_Time_Value * | timeout, | |
ACE_Thread_Mutex & | lock | |||
) |
Entry blocks on the token.
ACE_INLINE int ACE_Token::ACE_Token_Queue_Entry::signal | ( | void | ) |
Notify (unblock) the entry.
Pointer to next waiter.
ACE_Thread id of this waiter.
ACE_Semaphore object used to wake up waiter when it can run again.
Ok to run.