TAO_Condition< MUTEX > Class Template ReferenceSame as to the ACE_Condition variable wrapper. More...
Collaboration diagram for TAO_Condition< MUTEX >:
Detailed Descriptiontemplate<class MUTEX>
Same as to the ACE_Condition variable wrapper.
|
typedef MUTEX TAO_Condition< MUTEX >::LOCK |
Useful typedef.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Condition< MUTEX >::TAO_Condition | ( | MUTEX & | m | ) | [inline] |
Initialize the condition variable.
TAO_Condition< MUTEX >::TAO_Condition | ( | void | ) | [inline] |
A default constructor. Since no lock is provided by the user, one will be created internally.
TAO_Condition< MUTEX >::~TAO_Condition | ( | void | ) | [inline] |
Implicitly destroy the condition variable.
TAO_Condition< MUTEX >::TAO_Condition | ( | const TAO_Condition< MUTEX > & | ) | [private] |
ACE_INLINE int TAO_Condition< MUTEX >::wait | ( | const ACE_Time_Value * | abstime | ) | [inline] |
Block on condition, or until absolute time-of-day has passed. If abstime == 0 use "blocking" <wait> semantics. Else, if <abstime> != 0 and the call times out before the condition is signaled <wait> returns -1 and sets errno to ETIME.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int TAO_Condition< MUTEX >::wait | ( | void | ) | [inline] |
Block on condition.
ACE_INLINE int TAO_Condition< MUTEX >::wait | ( | MUTEX & | mutex, | |
const ACE_Time_Value * | abstime = 0 | |||
) | [inline] |
Block on condition or until absolute time-of-day has passed. If abstime == 0 use "blocking" wait() semantics on the <mutex> passed as a parameter (this is useful if you need to store the <Condition> in shared memory). Else, if <abstime> != 0 and the call times out before the condition is signaled <wait> returns -1 and sets errno to ETIME.
ACE_INLINE int TAO_Condition< MUTEX >::signal | ( | void | ) | [inline] |
Signal one waiting thread.
ACE_INLINE int TAO_Condition< MUTEX >::broadcast | ( | void | ) | [inline] |
Signal *all* waiting threads.
ACE_INLINE int TAO_Condition< MUTEX >::remove | ( | void | ) | [inline] |
Explicitly destroy the condition variable.
ACE_INLINE MUTEX * TAO_Condition< MUTEX >::mutex | ( | void | ) | [inline] |
Returns a reference to the underlying mutex_;.
void TAO_Condition< MUTEX >::operator= | ( | const TAO_Condition< MUTEX > & | ) | [private] |
MUTEX* TAO_Condition< MUTEX >::mutex_ [private] |
Reference to mutex lock.
int TAO_Condition< MUTEX >::delete_lock_ [private] |
A flag to indicate whether the lock needs to be deleted.
TAO_SYNCH_CONDITION* TAO_Condition< MUTEX >::cond_ [private] |
Condition variable.