46#define MAX_QUEUE 65536
83 void *arg,
int flags);
threadpool_destroy_flags_t
Definition: threadpool.h:58
@ threadpool_graceful
Definition: threadpool.h:59
int threadpool_add(threadpool_t *pool, void(*routine)(void *), void *arg, int flags)
add a new task in the queue of a thread pool
int threadpool_destroy(threadpool_t *pool, int flags)
Stops and destroys a thread pool.
threadpool_t * threadpool_create(int thread_count, int queue_size, int flags)
Creates a threadpool_t object.
struct threadpool_t threadpool_t
Definition: threadpool.h:48
threadpool_error_t
Definition: threadpool.h:50
@ threadpool_invalid
Definition: threadpool.h:51
@ threadpool_thread_failure
Definition: threadpool.h:55
@ threadpool_lock_failure
Definition: threadpool.h:52
@ threadpool_shutdown
Definition: threadpool.h:54
@ threadpool_queue_full
Definition: threadpool.h:53