diff options
Diffstat (limited to 'misc/thread_pool.h')
-rw-r--r-- | misc/thread_pool.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/thread_pool.h b/misc/thread_pool.h index c7af7b2b57..7d5aed0531 100644 --- a/misc/thread_pool.h +++ b/misc/thread_pool.h @@ -3,8 +3,10 @@ struct mp_thread_pool; -struct mp_thread_pool *mp_thread_pool_create(void *ta_parent, int threads); -void mp_thread_pool_queue(struct mp_thread_pool *pool, void (*fn)(void *ctx), +struct mp_thread_pool *mp_thread_pool_create(void *ta_parent, int init_threads, + int min_threads, int max_threads); + +bool mp_thread_pool_queue(struct mp_thread_pool *pool, void (*fn)(void *ctx), void *fn_ctx); #endif |