| 74 pool_queue_t *next; |
76 pool_queue_t *next; |
| 75 }; |
77 }; |
| 76 |
78 |
| 77 UiThreadpool* threadpool_new(int min, int max); |
79 UiThreadpool* threadpool_new(int min, int max); |
| 78 int threadpool_start(UiThreadpool *pool); |
80 int threadpool_start(UiThreadpool *pool); |
| |
81 int threadpool_join(UiThreadpool *pool); |
| 79 void* threadpool_func(void *data); |
82 void* threadpool_func(void *data); |
| 80 threadpool_job* threadpool_get_job(UiThreadpool *pool); |
83 threadpool_job* threadpool_get_job(UiThreadpool *pool); |
| 81 void threadpool_run(UiThreadpool *pool, job_callback_f func, void *data); |
84 void threadpool_run(UiThreadpool *pool, job_callback_f func, void *data); |
| 82 void threadpool_enqueue_job(UiThreadpool *pool, threadpool_job *job); |
85 void threadpool_enqueue_job(UiThreadpool *pool, threadpool_job *job); |
| 83 |
86 |