#ifndef DEEPEXTRACT_TPOOL_H #define DEEPEXTRACT_TPOOL_H struct tpool; typedef struct tpool tpool_t; typedef void (*thread_func_t)(void *arg); tpool_t *tpool_create(int num); void tpool_start(tpool_t *pool); void tpool_destroy(tpool_t *tm); int tpool_add_work(tpool_t *pool, thread_func_t func, void *arg); void tpool_wait(tpool_t *tm); #endif