#include "zarray.h"
Go to the source code of this file.
Typedefs | |
typedef struct workerpool | workerpool_t |
Functions | |
void | workerpool_add_task (workerpool_t *wp, void(*f)(void *p), void *p) |
workerpool_t * | workerpool_create (int nthreads) |
void | workerpool_destroy (workerpool_t *wp) |
int | workerpool_get_nprocs () |
int | workerpool_get_nthreads (workerpool_t *wp) |
void | workerpool_run (workerpool_t *wp) |
void | workerpool_run_single (workerpool_t *wp) |
typedef struct workerpool workerpool_t |
Definition at line 32 of file workerpool.h.
void workerpool_add_task | ( | workerpool_t * | wp, |
void(*)(void *p) | f, | ||
void * | p | ||
) |
Definition at line 161 of file workerpool.c.
workerpool_t* workerpool_create | ( | int | nthreads | ) |
Definition at line 101 of file workerpool.c.
void workerpool_destroy | ( | workerpool_t * | wp | ) |
Definition at line 129 of file workerpool.c.
int workerpool_get_nprocs | ( | ) |
Definition at line 206 of file workerpool.c.
int workerpool_get_nthreads | ( | workerpool_t * | wp | ) |
Definition at line 156 of file workerpool.c.
void workerpool_run | ( | workerpool_t * | wp | ) |
Definition at line 182 of file workerpool.c.
void workerpool_run_single | ( | workerpool_t * | wp | ) |
Definition at line 170 of file workerpool.c.