Searched refs:threadPool (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | pool.c | 206 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_malloc(numThreads * sizeof(ZSTD_pthre… in POOL_resize_internal() local 207 if (!threadPool) return 1; in POOL_resize_internal() 209 memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal() 211 ctx->threads = threadPool; in POOL_resize_internal() 215 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | pool.c | 214 …{ 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()
|