Example #1
0
static void freectx (void *arg)
{
    jscctx_t *ctx = arg;
    zhash_destroy (&(ctx->active_jobs));
    lru_cache_destroy (ctx->kvs_paths);
    zlist_destroy (&(ctx->callbacks));
    flux_msg_handler_delvec (ctx->handlers);
}
Example #2
0
static void shard_cache_destroy(shard_cache_t* dircache) {
    int s;
    for (s = 0; s < NUM_SHARDS; s++) {
        lru_cache_destroy(&(dircache->shards[s]));
    }
}