#ifndef POOL_H
#define POOL_H
#if defined (__cplusplus)
extern "C" {
#endif
#include <stddef.h>
#include "zstd_internal.h"
typedef struct POOL_ctx_s POOL_ctx;
POOL_ctx *POOL_create(size_t numThreads, size_t queueSize);
POOL_ctx *POOL_create_advanced(size_t numThreads, size_t queueSize, ZSTD_customMem customMem);
void POOL_free(POOL_ctx *ctx);
size_t POOL_sizeof(POOL_ctx *ctx);
typedef void (*POOL_function)(void *);
typedef void (*POOL_add_function)(void *, POOL_function, void *);
void POOL_add(void *ctx, POOL_function function, void *opaque);
#if defined (__cplusplus)
}
#endif
#endif