19 #define tpoolLockCount 512 44 #define tpoolAdd(task, args) tpool_add_work(tpool, task, args) 45 #define tpoolWait tpool_wait(tpool) 46 #define tpoolKill tpool_destroy(tpool) 47 #define tpoolPause tpool_pause(tpool) 48 #define tpoolResume tpool_resume(tpool) 49 #define tpoolNum tpool_num_threads_working(tpool) 55 extern threadpool
tpool;
104 int tpool_add_work(threadpool,
void (*function_p)(
void*),
void* arg_p);
int tpool_num_threads_working(threadpool)
void tpoolLock(int position)
void tpool_destroy(threadpool)
void tpool_pause(threadpool)
void tpoolUlock(int position)
void tpool_wait(threadpool)
pthread_mutex_t tpoolLocks[tpoolLockCount]
threadpool tpool_init(int num_threads)
int tpool_add_work(threadpool, void(*function_p)(void *), void *arg_p)
void tpool_resume(threadpool)
struct tpool_ * threadpool