Пример #1
0
void hs_close(HStore *store)
{
    int i;
    if (!store) return;
    // stop optimizing
    store->op_start = store->op_end = 0;
    
    if (store->scan_threads > 1 && store->count > 1) {
        parallelize(store, bc_close);
    } else {
        for (i=0; i<store->count; i++){
            bc_close(store->bitcasks[i]);
        }
    }
    mgr_destroy(store->mgr);
    free(store);
}
Пример #2
0
void
close_hscxstate(struct BCState *bcs)
{
	modehscx(bcs, 0, bcs->channel);
	bc_close(bcs);
}