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

Function pconnection_begin_close

c/src/proactor/win_iocp.cpp:2206–2215  ·  view source on GitHub ↗

Call with lock held or from forced shutdown

Source from the content-addressed store, hash-verified

2204
2205// Call with lock held or from forced shutdown
2206static void pconnection_begin_close(pconnection_t *pc) {
2207 if (!pc->context.closing) {
2208 pc->context.closing = true;
2209 pn_connection_driver_close(&pc->driver);
2210 pc->stop_timer_required = true;
2211 if (pc->context.proactor->reaper->add(pc->psocket.iocpd))
2212 pc->psocket.iocpd = NULL;
2213 wakeup(&pc->psocket);
2214 }
2215}
2216
2217// call with lock held. return true if caller must call pconnection_final_free()
2218static bool pconnection_cleanup(pconnection_t *pc) {

Callers 4

pconnection_processFunction · 0.70
pconnection_doneFunction · 0.70

Calls 3

wakeupFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected