43 int max_threads; |
43 int max_threads; |
44 int stack_size; |
44 int stack_size; |
45 int queue_size; |
45 int queue_size; |
46 } ThreadPoolConfig; |
46 } ThreadPoolConfig; |
47 |
47 |
48 int create_threadpool(scstr_t name, ThreadPoolConfig *cfg); |
48 int create_threadpool(cxstring name, ThreadPoolConfig *cfg); |
49 |
49 |
50 int check_thread_pool_cfg(); |
50 int check_thread_pool_cfg(); |
51 |
51 |
52 threadpool_t* get_default_threadpool(); |
52 threadpool_t* get_default_threadpool(); |
53 threadpool_t* get_threadpool(sstr_t name); |
53 threadpool_t* get_threadpool(cxstring name); |
54 threadpool_t* get_default_iopool(); |
54 threadpool_t* get_default_iopool(); |
55 threadpool_t* get_iopool(sstr_t name); |
55 threadpool_t* get_iopool(cxstring name); |
56 |
56 |
57 #ifdef __cplusplus |
57 #ifdef __cplusplus |
58 } |
58 } |
59 #endif |
59 #endif |
60 |
60 |