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

Function pconnection_done

c/src/proactor/win_iocp.cpp:2428–2440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2426}
2427
2428static void pconnection_done(pconnection_t *pc) {
2429 {
2430 csguard g(&pc->context.cslock);
2431 pc->context.working = false;
2432 pc->hog_count = 0;
2433 if (pconnection_has_event(pc) || pconnection_work_pending(pc)) {
2434 wakeup(&pc->psocket);
2435 } else if (pn_connection_driver_finished(&pc->driver)) {
2436 pconnection_begin_close(pc);
2437 wakeup(&pc->psocket);
2438 }
2439 }
2440}
2441
2442static inline bool is_inactive(pn_proactor_t *p) {
2443 return (!p->contexts && !p->disconnects_pending && !p->timeout_set && !p->need_timeout && !p->shutting_down);

Callers 1

pn_proactor_doneFunction · 0.70

Calls 5

wakeupFunction · 0.85
pconnection_has_eventFunction · 0.70
pconnection_work_pendingFunction · 0.70
pconnection_begin_closeFunction · 0.70

Tested by

no test coverage detected