Home
last modified time | relevance | path

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

/src/sys/contrib/zstd/lib/common/
H A Dpool.c214 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_customMalloc(numThreads * sizeof(ZSTD… in POOL_resize_internal() local
215 if (!threadPool) return 1; in POOL_resize_internal()
217 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
219 ctx->threads = threadPool; in POOL_resize_internal()
223 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()
/src/sys/contrib/openzfs/module/zstd/lib/common/
H A Dpool.c224 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_customCalloc(numThreads * sizeof(ZSTD… in POOL_resize_internal() local
225 if (!threadPool) return 1; in POOL_resize_internal()
227 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(ZSTD_pthread_t)); in POOL_resize_internal()
229 ctx->threads = threadPool; in POOL_resize_internal()
233 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()