MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / waitForMatch

Function waitForMatch

tests/DCPS/MultiTopic/MultiTopicTest.cpp:321–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void waitForMatch(const DataWriter_var& dw, int count = 1)
322{
323 StatusCondition_var sc = dw->get_statuscondition();
324 sc->set_enabled_statuses(PUBLICATION_MATCHED_STATUS);
325 WaitSet_var ws = new WaitSet;
326 ws->attach_condition(sc);
327 ConditionSeq active;
328 PublicationMatchedStatus pubmatched;
329 while (dw->get_publication_matched_status(pubmatched) == RETCODE_OK
330 && pubmatched.current_count != count) {
331 check_rc(ws->wait(active, max_wait), "wait for match");
332 }
333 ws->detach_condition(sc);
334}
335
336template <typename MessageType>
337struct Writer {

Callers 1

run_multitopic_testFunction · 0.85

Calls 7

set_enabled_statusesMethod · 0.80
attach_conditionMethod · 0.80
detach_conditionMethod · 0.80
check_rcFunction · 0.70
get_statusconditionMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected