Home
last modified time | relevance | path

Searched refs:cctxPool (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c383 ZSTDMT_CCtxPool* const cctxPool = in ZSTDMT_createCCtxPool() local
386 if (!cctxPool) return NULL; in ZSTDMT_createCCtxPool()
387 if (ZSTD_pthread_mutex_init(&cctxPool->poolMutex, NULL)) { in ZSTDMT_createCCtxPool()
388 ZSTD_customFree(cctxPool, cMem); in ZSTDMT_createCCtxPool()
391 cctxPool->totalCCtx = nbWorkers; in ZSTDMT_createCCtxPool()
392 cctxPool->cctxs = (ZSTD_CCtx**)ZSTD_customCalloc(nbWorkers * sizeof(ZSTD_CCtx*), cMem); in ZSTDMT_createCCtxPool()
393 if (!cctxPool->cctxs) { in ZSTDMT_createCCtxPool()
394 ZSTDMT_freeCCtxPool(cctxPool); in ZSTDMT_createCCtxPool()
397 cctxPool->cMem = cMem; in ZSTDMT_createCCtxPool()
398 cctxPool->cctxs[0] = ZSTD_createCCtx_advanced(cMem); in ZSTDMT_createCCtxPool()
[all …]