nuclear@5: #ifndef THREAD_POOL_H_ nuclear@5: #define THREAD_POOL_H_ nuclear@5: nuclear@5: struct thread_pool; nuclear@5: nuclear@5: typedef void (*tpool_work_func)(void*); nuclear@5: nuclear@5: #define TPOOL_AUTO 0 nuclear@5: int tpool_init(struct thread_pool *tpool, int num_threads); nuclear@5: void tpool_destroy(struct thread_pool *tpool); nuclear@5: nuclear@5: void tpool_set_work_func(struct thread_pool *tpool, tpool_work_func func, void *cls); nuclear@5: nuclear@5: /* TODO cont. */ nuclear@5: nuclear@5: #endif /* THREAD_POOL_H_ */