RTI Connext Modern C++ API Version 7.1.0
|
<<reference-type>> A condition whose trigger value is under the control of the application. More...
#include <dds/core/cond/GuardCondition.hpp>
Public Member Functions | |
template<typename Functor > | |
void | handler (const Functor &func) |
Registers a custom handler with this condition. More... | |
void | reset_handler () |
Resets the handler for this condition. More... | |
void | trigger_value (bool value) |
Manually sets the trigger value. More... | |
![]() | |
void | dispatch () |
Dispatches the functors that have been registered with the condition. More... | |
bool | trigger_value () const |
This operation retrieves the trigger_value of the Condition. More... | |
<<reference-type>> A condition whose trigger value is under the control of the application.
The dds::core::cond::GuardCondition provides a way for an application to manually wake up a dds::core::cond::WaitSet. This is accomplished by attaching the dds::core::cond::GuardCondition to the dds::core::cond::WaitSet and then setting the trigger_value
by means of the dds::core::cond::GuardCondition::trigger_value() operation.
|
inline |
Registers a custom handler with this condition.
For information about condition handlers, see this ReadCondition constructor
|
inline |
Resets the handler for this condition.
After the invocation of this method no handler will be registered with this condition.
|
inline |
Manually sets the trigger value.
Setting the trigger value to true causes the activation of the condition in a WaitSet.