MCPcopy Create free account
hub / github.com/F-Stack/f-stack / POOL_resize

Function POOL_resize

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:7198–7207  ·  view source on GitHub ↗

@return : 0 on success, 1 on error */

Source from the content-addressed store, hash-verified

7196
7197/* @return : 0 on success, 1 on error */
7198int POOL_resize(POOL_ctx* ctx, size_t numThreads)
7199{
7200 int result;
7201 if (ctx==NULL) return 1;
7202 ZSTD_pthread_mutex_lock(&ctx->queueMutex);
7203 result = POOL_resize_internal(ctx, numThreads);
7204 ZSTD_pthread_cond_broadcast(&ctx->queuePopCond);
7205 ZSTD_pthread_mutex_unlock(&ctx->queueMutex);
7206 return result;
7207}
7208
7209/**
7210 * Returns 1 if the queue is full and 0 otherwise.

Callers

nothing calls this directly

Calls 1

POOL_resize_internalFunction · 0.70

Tested by

no test coverage detected