| 2128 | } |
| 2129 | |
| 2130 | VOID CALLBACK tick_timer_cb(PVOID arg, BOOLEAN /* ignored*/ ) { |
| 2131 | pconnection_t *pc = (pconnection_t *) arg; |
| 2132 | csguard g(&pc->context.cslock); |
| 2133 | if (pc->psocket.iocpd && !pc->psocket.iocpd->closing) { |
| 2134 | pc->tick_pending = true; |
| 2135 | wakeup(&pc->psocket); |
| 2136 | } |
| 2137 | } |
| 2138 | |
| 2139 | |
| 2140 | // Call with no lock held or stop_timer and callback may deadlock |