@return : 0 on success, 1 on error */
| 7196 | |
| 7197 | /* @return : 0 on success, 1 on error */ |
| 7198 | int 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. |
nothing calls this directly
no test coverage detected