ACE_Condition< MUTEX > Class Template ReferenceACE_Condition variable wrapper, which allows threads to block until shared data changes state. More...
Inheritance diagram for ACE_Condition< MUTEX >:
Collaboration diagram for ACE_Condition< MUTEX >:
Detailed Descriptiontemplate<class MUTEX>
ACE_Condition variable wrapper, which allows threads to block until shared data changes state.
|
ACE_Condition< MUTEX >::ACE_Condition | ( | MUTEX & | m, | |
int | type = USYNC_THREAD , |
|||
const ACE_TCHAR * | name = 0 , |
|||
void * | arg = 0 | |||
) | [inline] |
Initialize the condition variable.
ACE_Condition< MUTEX >::~ACE_Condition | ( | void | ) | [inline] |
Implicitly destroy the condition variable.
ACE_Condition< MUTEX >::ACE_Condition | ( | const ACE_Condition< MUTEX > & | ) | [private] |
int ACE_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.
int ACE_Condition< MUTEX >::wait | ( | void | ) | [inline] |
Block on condition.
int ACE_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 ACE_Condition< MUTEX >::signal | ( | void | ) | [inline] |
Signal one waiting thread.
ACE_INLINE int ACE_Condition< MUTEX >::broadcast | ( | void | ) | [inline] |
Signal *all* waiting threads.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_Condition< MUTEX >::remove | ( | void | ) | [inline] |
Explicitly destroy the condition variable.
ACE_INLINE MUTEX & ACE_Condition< MUTEX >::mutex | ( | void | ) | [inline] |
Returns a reference to the underlying mutex_;.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_Condition< MUTEX >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
Reimplemented in ACE_Thread_Condition< MUTEX >, and ACE_Thread_Condition< ACE_Thread_Mutex >.
void ACE_Condition< MUTEX >::operator= | ( | const ACE_Condition< MUTEX > & | ) | [private] |
ACE_cond_t ACE_Condition< MUTEX >::cond_ [protected] |
Condition variable.
MUTEX& ACE_Condition< MUTEX >::mutex_ [protected] |
Reference to mutex lock.