11 #ifndef MERCURY_THREAD_POOL_H
12 #define MERCURY_THREAD_POOL_H
14 #include "mercury_util_config.h"
HG_UTIL_EXPORT int hg_thread_pool_destroy(hg_thread_pool_t *pool)
Destroy the thread pool.
HG_UTIL_EXPORT int hg_thread_pool_post(hg_thread_pool_t *pool, hg_thread_func_t f, void *args)
Post the work function f to the pool.
struct hg_thread_pool hg_thread_pool_t
void *(* hg_thread_func_t)(void *)
HG_UTIL_EXPORT int hg_thread_pool_init(unsigned int thread_count, hg_thread_pool_t **pool)
Initialize the thread pool.