#define TRUE 1
#define FALSE 0
int is_cond1_triggered = FALSE;
int is_cond2_triggered = FALSE;
int i;
} else {
for(i = 0; i < DDS_ConditionSeq_get_length(&active_conditions); ++i) {
if (DDS_ConditionSeq_get(&active_conditions, i) == cond1) {
printf("Cond1 was triggered!");
is_cond1_triggered = TRUE;
}
if (DDS_ConditionSeq_get(&active_conditions, i) == cond2) {
printf("Cond2 was triggered!");
is_cond2_triggered = TRUE;
}
if (is_cond1_triggered && is_cond2_triggered) {
break;
}
}
}
if (is_cond1_triggered) {
}
if (is_cond2_triggered) {
}
DDS_ReturnCode_t DDS_WaitSet_wait(DDS_WaitSet *self, struct DDS_ConditionSeq *active_conditions, const struct DDS_Duration_t *timeout)
Allows an application thread to wait for the occurrence of certain conditions.
@ DDS_RETCODE_TIMEOUT
The operation timed out.
Definition: infrastructure.ifc:1395
#define DDS_SEQUENCE_INITIALIZER
An initializer for new sequence instances.
Definition: sequence.ifc:566
Instantiates FooSeq < DDS_Condition >
Definition: infrastructure.ifc:8251
Type for duration representation.
Definition: infrastructure.ifc:444