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

Function POOL_free

freebsd/contrib/zstd/lib/common/pool.c:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void POOL_free(POOL_ctx *ctx) {
181 if (!ctx) { return; }
182 POOL_join(ctx);
183 ZSTD_pthread_mutex_destroy(&ctx->queueMutex);
184 ZSTD_pthread_cond_destroy(&ctx->queuePushCond);
185 ZSTD_pthread_cond_destroy(&ctx->queuePopCond);
186 ZSTD_customFree(ctx->queue, ctx->customMem);
187 ZSTD_customFree(ctx->threads, ctx->customMem);
188 ZSTD_customFree(ctx, ctx->customMem);
189}
190
191void ZSTD_freeThreadPool (ZSTD_threadPool* pool) {
192 POOL_free (pool);

Callers 5

POOL_create_advancedFunction · 0.70
ZSTD_freeThreadPoolFunction · 0.70
ZSTDMT_freeCCtxFunction · 0.50

Calls 4

ZSTD_customFreeFunction · 0.85
POOL_joinFunction · 0.70

Tested by

no test coverage detected