The WaitSet class allows an application to wait until one or more of the attached Condition objects has a trigger_value of TRUE or until timeout expires. More...
#include <WaitSet.hpp>
Public Member Functions | |
| FASTDDS_EXPORTED_API | WaitSet () |
| FASTDDS_EXPORTED_API | ~WaitSet () |
| WaitSet (const WaitSet &)=delete | |
| WaitSet (WaitSet &&)=delete | |
| WaitSet & | operator= (const WaitSet &)=delete |
| WaitSet & | operator= (WaitSet &&)=delete |
| FASTDDS_EXPORTED_API ReturnCode_t | attach_condition (const Condition &cond) |
| Attaches a Condition to the Wait Set. | |
| FASTDDS_EXPORTED_API ReturnCode_t | detach_condition (const Condition &cond) |
| Detaches a Condition from the WaitSet. | |
| FASTDDS_EXPORTED_API ReturnCode_t | wait (ConditionSeq &active_conditions, const dds::Duration_t timeout) const |
| Allows an application thread to wait for the occurrence of certain conditions. | |
| FASTDDS_EXPORTED_API ReturnCode_t | get_conditions (ConditionSeq &attached_conditions) const |
| Retrieves the list of attached conditions. | |
The WaitSet class allows an application to wait until one or more of the attached Condition objects has a trigger_value of TRUE or until timeout expires.
| FASTDDS_EXPORTED_API WaitSet | ( | ) |
| FASTDDS_EXPORTED_API ~WaitSet | ( | ) |
|
delete |
|
delete |
| FASTDDS_EXPORTED_API ReturnCode_t attach_condition | ( | const Condition & | cond | ) |
| FASTDDS_EXPORTED_API ReturnCode_t detach_condition | ( | const Condition & | cond | ) |
| FASTDDS_EXPORTED_API ReturnCode_t get_conditions | ( | ConditionSeq & | attached_conditions | ) | const |
Retrieves the list of attached conditions.
| attached_conditions | Reference to the collection of attached conditions |
| FASTDDS_EXPORTED_API ReturnCode_t wait | ( | ConditionSeq & | active_conditions, |
| const dds::Duration_t | timeout ) const |
Allows an application thread to wait for the occurrence of certain conditions.
If none of the conditions attached to the WaitSet have a trigger_value of true, the wait operation will block suspending the calling thread
| active_conditions | Reference to the collection of conditions which trigger_value are true |
| timeout | Maximum time of the wait |