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