/* Remove timers from event loop */ void throttle_timers_detach_aio_context(ThrottleTimers *tt) { int i; for (i = 0; i < 2; i++) { throttle_timer_destroy(&tt->timers[i]); } }
/* To be called last on the ThrottleState */ void throttle_destroy(ThrottleState *ts) { int i; for (i = 0; i < 2; i++) { throttle_timer_destroy(&ts->timers[i]); } }