[pool] Accept custom allocators

This commit is contained in:
Nick Terrell
2017-08-24 17:01:41 -07:00
parent 89dc856cae
commit 26dc040a7b
2 changed files with 25 additions and 10 deletions
+3
View File
@@ -16,6 +16,7 @@ extern "C" {
#include <stddef.h> /* size_t */
#include "zstd_internal.h" /* ZSTD_customMem */
typedef struct POOL_ctx_s POOL_ctx;
@@ -27,6 +28,8 @@ 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);
/*! POOL_free() :
Free a thread pool returned by POOL_create().
*/