27 #include <Inventor/C/basic.h>
28 #include <Inventor/C/threads/common.h>
36 typedef void cc_wpool_f(
void *);
38 COIN_DLL_API cc_wpool * cc_wpool_construct(
int numworkers);
39 COIN_DLL_API
void cc_wpool_destruct(cc_wpool * pool);
41 COIN_DLL_API
int cc_wpool_get_num_workers(cc_wpool * pool);
42 COIN_DLL_API
void cc_wpool_set_num_workers(cc_wpool * pool,
int newnum);
43 COIN_DLL_API
void cc_wpool_wait_all(cc_wpool * pool);
45 COIN_DLL_API SbBool cc_wpool_try_begin(cc_wpool * pool,
int numworkersneeded);
46 COIN_DLL_API
void cc_wpool_begin(cc_wpool * pool,
int numworkersneeded);
47 COIN_DLL_API
void cc_wpool_start_worker(cc_wpool * pool,
48 cc_wpool_f * workfunc,
void * closure);
49 COIN_DLL_API
void cc_wpool_end(cc_wpool * pool);