Lines Matching refs:pool
333 static ZSTDMT_seqPool* ZSTDMT_expandSeqPool(ZSTDMT_seqPool* pool, U32 nbWorkers) in ZSTDMT_expandSeqPool() argument
335 return ZSTDMT_expandBufferPool(pool, nbWorkers); in ZSTDMT_expandSeqPool()
351 static void ZSTDMT_freeCCtxPool(ZSTDMT_CCtxPool* pool) in ZSTDMT_freeCCtxPool() argument
354 for (cid=0; cid<pool->totalCCtx; cid++) in ZSTDMT_freeCCtxPool()
355 ZSTD_freeCCtx(pool->cctx[cid]); /* note : compatible with free on NULL */ in ZSTDMT_freeCCtxPool()
356 ZSTD_pthread_mutex_destroy(&pool->poolMutex); in ZSTDMT_freeCCtxPool()
357 ZSTD_free(pool, pool->cMem); in ZSTDMT_freeCCtxPool()
427 static void ZSTDMT_releaseCCtx(ZSTDMT_CCtxPool* pool, ZSTD_CCtx* cctx) in ZSTDMT_releaseCCtx() argument
430 ZSTD_pthread_mutex_lock(&pool->poolMutex); in ZSTDMT_releaseCCtx()
431 if (pool->availCCtx < pool->totalCCtx) in ZSTDMT_releaseCCtx()
432 pool->cctx[pool->availCCtx++] = cctx; in ZSTDMT_releaseCCtx()
438 ZSTD_pthread_mutex_unlock(&pool->poolMutex); in ZSTDMT_releaseCCtx()