src/server/daemon/threadpools.h

changeset 415
d938228c382e
parent 256
19259b6c5cf7
equal deleted inserted replaced
414:99a34860c105 415:d938228c382e
27 */ 27 */
28 28
29 #ifndef THREADPOOLS_H 29 #ifndef THREADPOOLS_H
30 #define THREADPOOLS_H 30 #define THREADPOOLS_H
31 31
32 #include <ucx/string.h> 32 #include <cx/string.h>
33 33
34 #include "../public/nsapi.h" 34 #include "../public/nsapi.h"
35 #include "../util/thrpool.h" 35 #include "../util/thrpool.h"
36 36
37 #ifdef __cplusplus 37 #ifdef __cplusplus
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

mercurial