static void send_defer_reply(outlet_t *ol, term_t reply_to) { assert(ol->send_in_progress == 0); assert(ol->send_timeout_set == 0); ol->send_in_progress = 1; ol->send_reply_to = reply_to; if (ol->send_timeout != INET_INFINITY) { sys_timeout_adj(ol->send_timeout, send_timeout_cb, ol); ol->send_timeout_set = 1; } }
static void cr_defer_reply(outlet_t *ol, term_t reply_to, uint32_t millis) { assert(ol->cr_in_progress == 0); assert(ol->cr_timeout_set == 0); ol->cr_in_progress = 1; ol->cr_reply_to = reply_to; if (millis != INET_INFINITY) { sys_timeout_adj(millis, cr_timeout_cb, ol); ol->cr_timeout_set = 1; } }
/* * Timers and timeouts */ static void tcp_accept_timeout(void *ctx, uint32_t millis) { sys_timeout_adj(millis, accept_timeout_cb, ctx); }