Home
last modified time | relevance | path

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

/freebsd/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()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dpool.c207 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_malloc(numThreads * sizeof(ZSTD_pthre… in POOL_resize_internal() local
208 if (!threadPool) return 1; in POOL_resize_internal()
210 memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
212 ctx->threads = threadPool; in POOL_resize_internal()
216 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()