예제 #1
0
파일: ctx.c 프로젝트: raedwulf/libdill
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);
}
예제 #2
0
파일: ctx.c 프로젝트: paulofaria/libdill
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;
}
예제 #3
0
파일: ctx.c 프로젝트: jimjag/libdill
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;
}