36#include <Inventor/C/basic.h>
37#include <Inventor/C/threads/common.h>
45typedef void cc_wpool_f(
void *);
47 COIN_DLL_API cc_wpool * cc_wpool_construct(
int numworkers);
48 COIN_DLL_API
void cc_wpool_destruct(cc_wpool * pool);
50 COIN_DLL_API
int cc_wpool_get_num_workers(cc_wpool * pool);
51 COIN_DLL_API
void cc_wpool_set_num_workers(cc_wpool * pool,
int newnum);
52 COIN_DLL_API
void cc_wpool_wait_all(cc_wpool * pool);
54 COIN_DLL_API SbBool cc_wpool_try_begin(cc_wpool * pool,
int numworkersneeded);
55 COIN_DLL_API
void cc_wpool_begin(cc_wpool * pool,
int numworkersneeded);
56 COIN_DLL_API
void cc_wpool_start_worker(cc_wpool * pool,
57 cc_wpool_f * workfunc,
void * closure);
58 COIN_DLL_API
void cc_wpool_end(cc_wpool * pool);