mirror of
https://github.com/facebook/zstd.git
synced 2025-10-20 00:04:34 -04:00
[pool] Fix formatting
This commit is contained in:
parent
e9ce1208a1
commit
89dc856cae
@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
/* A job is a function and an opaque argument */
|
/* A job is a function and an opaque argument */
|
||||||
typedef struct POOL_job_s {
|
typedef struct POOL_job_s {
|
||||||
POOL_function function;
|
POOL_function function;
|
||||||
void *opaque;
|
void *opaque;
|
||||||
} POOL_job;
|
} POOL_job;
|
||||||
|
|
||||||
struct POOL_ctx_s {
|
struct POOL_ctx_s {
|
||||||
@ -214,13 +214,13 @@ void POOL_add(void* ctxVoid, POOL_function function, void *opaque) {
|
|||||||
|
|
||||||
/* We don't need any data, but if it is empty malloc() might return NULL. */
|
/* We don't need any data, but if it is empty malloc() might return NULL. */
|
||||||
struct POOL_ctx_s {
|
struct POOL_ctx_s {
|
||||||
int data;
|
int data;
|
||||||
};
|
};
|
||||||
|
|
||||||
POOL_ctx* POOL_create(size_t numThreads, size_t queueSize) {
|
POOL_ctx* POOL_create(size_t numThreads, size_t queueSize) {
|
||||||
(void)numThreads;
|
(void)numThreads;
|
||||||
(void)queueSize;
|
(void)queueSize;
|
||||||
return (POOL_ctx*)malloc(sizeof(POOL_ctx));
|
return (POOL_ctx*)malloc(sizeof(POOL_ctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
void POOL_free(POOL_ctx* ctx) {
|
void POOL_free(POOL_ctx* ctx) {
|
||||||
@ -228,8 +228,8 @@ void POOL_free(POOL_ctx* ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void POOL_add(void* ctx, POOL_function function, void* opaque) {
|
void POOL_add(void* ctx, POOL_function function, void* opaque) {
|
||||||
(void)ctx;
|
(void)ctx;
|
||||||
function(opaque);
|
function(opaque);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t POOL_sizeof(POOL_ctx* ctx) {
|
size_t POOL_sizeof(POOL_ctx* ctx) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user