Changeset View
Changeset View
Standalone View
Standalone View
contrib/zstd/lib/common/pool.h
Show All 9 Lines | |||||
#ifndef POOL_H | #ifndef POOL_H | ||||
#define POOL_H | #define POOL_H | ||||
#if defined (__cplusplus) | #if defined (__cplusplus) | ||||
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
#ifdef _KERNEL | |||||
#include <sys/param.h> /* size_t */ | |||||
#else | |||||
#include <stddef.h> /* size_t */ | #include <stddef.h> /* size_t */ | ||||
#endif | |||||
typedef struct POOL_ctx_s POOL_ctx; | typedef struct POOL_ctx_s POOL_ctx; | ||||
/*! POOL_create() : | /*! POOL_create() : | ||||
* Create a thread pool with at most `numThreads` threads. | * Create a thread pool with at most `numThreads` threads. | ||||
* `numThreads` must be at least 1. | * `numThreads` must be at least 1. | ||||
* The maximum number of queued jobs before blocking is `queueSize`. | * The maximum number of queued jobs before blocking is `queueSize`. | ||||
* @return : POOL_ctx pointer on success, else NULL. | * @return : POOL_ctx pointer on success, else NULL. | ||||
Show All 35 Lines |