Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/common/
H A Dpool.c212 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_customMalloc(numThreads * sizeof(ZSTD… in POOL_resize_internal() local
213 if (!threadPool) return 1; in POOL_resize_internal()
215 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
217 ctx->threads = threadPool; in POOL_resize_internal()
221 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c7177 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_malloc(numThreads * sizeof(ZSTD_pthre… in POOL_resize_internal() local
7178 if (!threadPool) return 1; in POOL_resize_internal()
7180 memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
7182 ctx->threads = threadPool; in POOL_resize_internal()
7186 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()