Home
last modified time | relevance | path

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

/external/rust/crates/grpcio-sys/grpc/third_party/xxhash/tests/collisions/
Dpool.c49 size_t threadCapacity; member
144 ctx->threadCapacity = 0; in POOL_create()
151 ctx->threadCapacity = i; in POOL_create()
155 ctx->threadCapacity = numThreads; in POOL_create()
176 for (i = 0; i < ctx->threadCapacity; ++i) { in POOL_join()
198 + ctx->threadCapacity * sizeof(ZSTD_pthread_t); in POOL_sizeof()
205 if (numThreads <= ctx->threadCapacity) { in POOL_resize_internal()
214 memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
219 for (threadId = ctx->threadCapacity; threadId < numThreads; ++threadId) { in POOL_resize_internal()
221 ctx->threadCapacity = threadId; in POOL_resize_internal()
[all …]
/external/zstd/lib/common/
Dpool.c38 size_t threadCapacity; member
146 ctx->threadCapacity = 0; in POOL_create_advanced()
154 ctx->threadCapacity = i; in POOL_create_advanced()
158 ctx->threadCapacity = numThreads; in POOL_create_advanced()
177 for (i = 0; i < ctx->threadCapacity; ++i) { in POOL_join()
201 + ctx->threadCapacity * sizeof(ZSTD_pthread_t); in POOL_sizeof()
208 if (numThreads <= ctx->threadCapacity) { in POOL_resize_internal()
217 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
222 for (threadId = ctx->threadCapacity; threadId < numThreads; ++threadId) { in POOL_resize_internal()
224 ctx->threadCapacity = threadId; in POOL_resize_internal()
[all …]