| 178 | } |
| 179 | |
| 180 | void 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 | |
| 191 | void ZSTD_freeThreadPool (ZSTD_threadPool* pool) { |
| 192 | POOL_free (pool); |
no test coverage detected