Searched refs:cctxPool (Results 1 – 1 of 1) sorted by relevance
370 ZSTDMT_CCtxPool* const cctxPool = (ZSTDMT_CCtxPool*) ZSTD_customCalloc( in ZSTDMT_createCCtxPool() local373 if (!cctxPool) return NULL; in ZSTDMT_createCCtxPool()374 if (ZSTD_pthread_mutex_init(&cctxPool->poolMutex, NULL)) { in ZSTDMT_createCCtxPool()375 ZSTD_customFree(cctxPool, cMem); in ZSTDMT_createCCtxPool()378 cctxPool->cMem = cMem; in ZSTDMT_createCCtxPool()379 cctxPool->totalCCtx = nbWorkers; in ZSTDMT_createCCtxPool()380 cctxPool->availCCtx = 1; /* at least one cctx for single-thread mode */ in ZSTDMT_createCCtxPool()381 cctxPool->cctx[0] = ZSTD_createCCtx_advanced(cMem); in ZSTDMT_createCCtxPool()382 if (!cctxPool->cctx[0]) { ZSTDMT_freeCCtxPool(cctxPool); return NULL; } in ZSTDMT_createCCtxPool()384 return cctxPool; in ZSTDMT_createCCtxPool()[all …]