Public Member Functions | |
WaitSet () | |
void | destroy () |
ReturnCode_t | attach_condition (Condition c) |
ReturnCode_t | detach_condition (Condition c) |
ReturnCode_t | wait (List< Condition > active_conditions, Duration_t timeout) |
ReturnCode_t | get_conditions (List< Condition > attached_conditions) |
A DDS_WaitSet maintains a set of Condition objects and allows the application to wait until one or more of them have a trigger_value of TRUE.
Multiple conditions may be attached to a WaitSet.
|
inline |
Constructor.
|
inline |
|
inline |
|
inline |
|
inline |
Retrieves the current list of attached conditions. Populates the attached_conditions sequence.
|
inline |
Causes the controlling thread to block until an attached condition is triggered or timeout elapses.
A return value of DDS_RETCODE_OK indicates that one or more of the attached conditions evaluated to TRUE. Those 'active' conditions are included in the 'out' parameter active_conditions.
A return value of DDS_RETCODE_TIMEOUT indicates that the timeout period elapsed without any of the conditions evaluating to TRUE.