struct vud_pool vud_pool
Definition vud_pool.h:16
void(* vud_pool_worker)(unsigned id, unsigned nr_worker, void *arg)
called once per pool_do call for each worker
Definition vud_pool.h:13
void vud_pool_do(vud_pool *pool, vud_pool_worker worker, void *arg)
perform an operation on all workers of the pool
vud_pool * vud_pool_init(unsigned n_worker)
create a new thread pool
void vud_pool_free(vud_pool *pool)
free up all resources (including threads and locks) used for the pool