#include <Condition.h>
Inheritance diagram for TAO_Condition:


Public Types | |
| typedef MUTEX | LOCK |
| Useful typedef. More... | |
Public Methods | |
| TAO_Condition (MUTEX &m) | |
| Initialize the condition variable. More... | |
| TAO_Condition (void) | |
| A default constructor. Since no lock is provided by the user, one will be created internally. More... | |
| ~TAO_Condition (void) | |
| Implicitly destroy the condition variable. More... | |
| int | wait (const ACE_Time_Value *abstime) |
| Block on condition, or until absolute time-of-day has passed. More... | |
| int | wait (void) |
| Block on condition. More... | |
| int | wait (MUTEX &mutex, const ACE_Time_Value *abstime=0) |
| Block on condition or until absolute time-of-day has passed. More... | |
| int | signal (void) |
| Signal one waiting thread. More... | |
| int | broadcast (void) |
| Signal *all* waiting threads. More... | |
| int | remove (void) |
| Explicitly destroy the condition variable. More... | |
| MUTEX * | mutex (void) |
| Returns a reference to the underlying mutex_;. More... | |
Private Attributes | |
| MUTEX * | mutex_ |
| Reference to mutex lock. More... | |
| int | delete_lock_ |
| A flag to indicate whether the lock needs to be deleted. More... | |
| TAO_SYNCH_CONDITION * | cond_ |
| Condition variable. More... | |
This class differs from ACE_Condition in that it uses a TAO_SYNCH_CONDITION instead of ACE_cond_t under the hood to provide blocking.
|
|||||
|
Useful typedef.
|
|
||||||||||
|
Initialize the condition variable.
|
|
||||||||||
|
A default constructor. Since no lock is provided by the user, one will be created internally.
|
|
||||||||||
|
Implicitly destroy the condition variable.
|
|
||||||||||
|
Signal *all* waiting threads.
|
|
||||||||||
|
Returns a reference to the underlying mutex_;.
|
|
||||||||||
|
Explicitly destroy the condition variable.
|
|
||||||||||
|
Signal one waiting thread.
|
|
||||||||||||||||
|
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. |
|
||||||||||
|
Block on condition.
|
|
||||||||||
|
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. |
|
|||||
|
Condition variable.
|
|
|||||
|
A flag to indicate whether the lock needs to be deleted.
|
|
|||||
|
Reference to mutex lock.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001