MCPcopy Create free account
hub / github.com/apache/qpid-proton / flush

Method flush

c/tests/pn_test_proactor.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::pair<int, pn_event_type_t> proactor::flush(pn_event_type_t stop) {
96 auto_batch b(*this, pn_proactor_get(*this));
97 int n = 0;
98 if (b.get()) {
99 pn_event_t *e;
100 while ((e = b.next())) {
101 pn_event_type_t et = pn_event_type(e);
102 if (dispatch(e) || et == stop) return std::make_pair(n, et);
103 }
104 }
105 return std::make_pair(n, PN_EVENT_NONE);
106}
107
108pn_event_type_t proactor::corun(proactor &other, pn_event_type_t stop) {
109 // We can't wait() on either proactor as it might be idle.

Callers 5

on_openMethod · 0.45
on_openMethod · 0.45
on_openMethod · 0.45
proactor_test.cppFile · 0.45
corunMethod · 0.45

Calls 4

pn_event_typeFunction · 0.85
pn_proactor_getFunction · 0.50
getMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected