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

Function stop_timer

c/src/proactor/win_iocp.cpp:2113–2120  ·  view source on GitHub ↗

Either stops a timer before firing or returns after the callback has completed (in the threadpool thread). Never "in doubt".

Source from the content-addressed store, hash-verified

2111// Either stops a timer before firing or returns after the callback has
2112// completed (in the threadpool thread). Never "in doubt".
2113static bool stop_timer(HANDLE tqueue, HANDLE *timer) {
2114 if (!*timer) return true;
2115 if (DeleteTimerQueueTimer(tqueue, *timer, INVALID_HANDLE_VALUE)) {
2116 *timer = NULL;
2117 return true;
2118 }
2119 return false; // error
2120}
2121
2122static bool start_timer(HANDLE tqueue, HANDLE *timer, WAITORTIMERCALLBACK cb, void *cb_arg, DWORD time) {
2123 if (*timer) {

Callers 5

pconnection_tickFunction · 0.85
pconnection_processFunction · 0.85
pn_proactor_set_timeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected