static void dill_ctx_atexit(void) { dill_ctx_pollset_term(&dill_ctx_.pollset); dill_ctx_stack_term(&dill_ctx_.stack); dill_ctx_handle_term(&dill_ctx_.handle); dill_ctx_cr_term(&dill_ctx_.cr); dill_ctx_now_term(&dill_ctx_.now); }
static void dill_ctx_term(void *ptr) { struct dill_ctx *ctx = ptr; dill_ctx_pollset_term(&ctx->pollset); dill_ctx_stack_term(&ctx->stack); dill_ctx_handle_term(&ctx->handle); dill_ctx_cr_term(&ctx->cr); if(dill_ismain()) dill_main = NULL; }
static void dill_ctx_term_(struct dill_ctx *ctx) { dill_assert(ctx->initialized == 1); dill_ctx_fd_term(&ctx->fd); dill_ctx_pollset_term(&ctx->pollset); dill_ctx_stack_term(&ctx->stack); dill_ctx_handle_term(&ctx->handle); dill_ctx_cr_term(&ctx->cr); dill_ctx_now_term(&ctx->now); ctx->initialized = 0; }