libresman
diff src/threadpool.h @ 6:410c19c735b2
- removed the glew dependency
- initial thread pool implementation
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 03 Feb 2014 05:22:09 +0200 |
parents | bd9b4ff19c93 |
children | 4d18498a0078 |
line diff
1.1 --- a/src/threadpool.h Sat Feb 01 08:02:08 2014 +0200 1.2 +++ b/src/threadpool.h Mon Feb 03 05:22:09 2014 +0200 1.3 @@ -3,7 +3,7 @@ 1.4 1.5 struct thread_pool; 1.6 1.7 -typedef void (*tpool_work_func)(void*); 1.8 +typedef void (*tpool_work_func)(void *data, void *cls); 1.9 1.10 #define TPOOL_AUTO 0 1.11 int tpool_init(struct thread_pool *tpool, int num_threads); 1.12 @@ -11,6 +11,6 @@ 1.13 1.14 void tpool_set_work_func(struct thread_pool *tpool, tpool_work_func func, void *cls); 1.15 1.16 -/* TODO cont. */ 1.17 +int tpool_add_work(struct thread_pool *tpool, void *data); 1.18 1.19 #endif /* THREAD_POOL_H_ */