CoreDX DDS Modern C++ API
|
A WaitSet is a mechanism to block until one of a set of Conditions are triggered. There are several different types of conditions that are supported by the DDS API.
Additionally, the GuardCondition provides an application controlled Condition.
Create a WaitSet and attach Conditions to it
Block on the WaitSet
Instead of simply blocking, you can associate a functor a condition. The functor will be invoked when the WaitSet detects that the condition has triggered. The functor can be a lambda expression, or a functor object (that is, an object that overloads operator()").