acl  3.5.3.0
acl_threads_params.h
浏览该文件的文档.
1 #ifndef ACL_THREADS_PARAMS_INCLUDE_H
2 #define ACL_THREADS_PARAMS_INCLUDE_H
3 
4 #include "../stdlib/acl_define.h"
5 
6 #ifndef ACL_CLIENT_ONLY
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 extern char *acl_var_threads_procname;
13 extern char *acl_var_threads_log_file;
14 
15 #define ACL_VAR_THREADS_BUF_SIZE "ioctl_buf_size"
16 #define ACL_DEF_THREADS_BUF_SIZE 8192
17 extern int acl_var_threads_buf_size;
18 
19 #define ACL_VAR_THREADS_RW_TIMEOUT "ioctl_rw_timeout"
20 #define ACL_DEF_THREADS_RW_TIMEOUT 30
22 
23 #define ACL_VAR_THREADS_POOL_LIMIT "ioctl_max_threads"
24 #define ACL_DEF_THREADS_POOL_LIMIT 50
26 
27 #define ACL_VAR_THREADS_THREAD_STACKSIZE "ioctl_stacksize"
28 #define ACL_DEF_THREADS_THREAD_STACKSIZE 0
30 
31 #define ACL_VAR_THREADS_THREAD_IDLE "ioctl_thread_idle_limit"
32 #define ACL_DEF_THREADS_THREAD_IDLE 120
34 
35 #define ACL_VAR_THREADS_IDLE_LIMIT "ioctl_idle_limit"
36 #define ACL_DEF_THREADS_IDLE_LIMIT 0
38 
39 #define ACL_VAR_THREADS_USE_LIMIT "ioctl_use_limit"
40 #define ACL_DEF_THREADS_USE_LIMIT 0
41 extern int acl_var_threads_use_limit;
42 
43 #define ACL_VAR_THREADS_QUEUE_DIR "ioctl_queue_dir"
44 #define ACL_DEF_THREADS_QUEUE_DIR "/opt/acl_master/var/queue"
45 extern char *acl_var_threads_queue_dir;
46 
47 #define ACL_VAR_THREADS_OWNER "ioctl_owner"
48 #define ACL_DEF_THREADS_OWNER "root"
49 extern char *acl_var_threads_owner;
50 
51 #define ACL_VAR_THREADS_DELAY_SEC "ioctl_delay_sec"
52 #define ACL_DEF_THREADS_DELAY_SEC 1
53 extern int acl_var_threads_delay_sec;
54 
55 #define ACL_VAR_THREADS_DELAY_USEC "ioctl_delay_usec"
56 #define ACL_DEF_THREADS_DELAY_USEC 5000
58 
59 #define ACL_VAR_THREADS_EVENT_MODE "ioctl_event_mode"
60 #ifdef ACL_UNIX
61 #define ACL_DEF_THREADS_EVENT_MODE "kernel"
62 #else
63 #define ACL_DEF_THREADS_EVENT_MODE "select"
64 #endif
65 extern char *acl_var_threads_event_mode;
66 
67 #define ACL_VAR_THREADS_DAEMON_TIMEOUT "ioctl_daemon_timeout"
68 #define ACL_DEF_THREADS_DAEMON_TIMEOUT 1800
70 
71 #define ACL_VAR_THREADS_MASTER_MAXPROC "master_maxproc"
72 #define ACL_DEF_THREADS_MASTER_MAXPROC 1
74 
75 #define ACL_VAR_THREADS_MAX_ACCEPT "ioctl_max_accept"
76 #define ACL_DEF_THREADS_MAX_ACCEPT 15
78 
79 #define ACL_VAR_THREADS_ENABLE_DOG "ioctl_enable_dog"
80 #ifdef ACL_UNIX
81 #define ACL_DEF_THREADS_ENABLE_DOG 0
82 #else
83 #define ACL_DEF_THREADS_ENABLE_DOG 1
84 #endif
86 
87 #define ACL_VAR_THREADS_QUICK_ABORT "ioctl_quick_abort"
88 #define ACL_DEF_THREADS_QUICK_ABORT 1
90 
91 #define ACL_VAR_THREADS_ENABLE_CORE "ioctl_enable_core"
92 #define ACL_DEF_THREADS_ENABLE_CORE 1
94 
95 #define ACL_VAR_THREADS_DISABLE_CORE_ONEXIT "ioctl_disable_core_onexit"
96 #define ACL_DEF_THREADS_DISABLE_CORE_ONEXIT 1
98 
99 #define ACL_VAR_THREADS_CORE_LIMIT "ioctl_core_limit"
100 #define ACL_DEF_THREADS_CORE_LIMIT -1
101 extern long long int acl_var_threads_core_limit;
102 
103 #define ACL_VAR_THREADS_LOG_DEBUG "master_debug"
104 #define ACL_DEF_THREADS_LOG_DEBUG ""
105 extern char *acl_var_threads_log_debug;
106 
107 #define ACL_VAR_THREADS_MAX_DEBUG "master_debug_max"
108 #define ACL_DEF_THREADS_MAX_DEBUG 1000
109 extern int acl_var_threads_max_debug;
110 
111 #define ACL_VAR_THREADS_STATUS_NOTIFY "master_status_notify"
112 #define ACL_DEF_THREADS_STATUS_NOTIFY 1
114 
115 #define ACL_VAR_THREADS_DENY_BANNER "ioctl_deny_banner"
116 #define ACL_DEF_THREADS_DENY_BANNER "You'are not Welcome!"
117 extern char *acl_var_threads_deny_banner;
118 
119 #define ACL_VAR_THREADS_ACCESS_ALLOW "ioctl_access_allow"
120 #define ACL_DEF_THREADS_ACCESS_ALLOW "all"
121 extern char *acl_var_threads_access_allow;
122 
123 #define ACL_VAR_THREADS_BATADD "ioctl_batadd"
124 #define ACL_DEF_THREADS_BATADD 0
125 extern int acl_var_threads_batadd;
126 
127 #define ACL_VAR_THREADS_SCHEDULE_WARN "ioctl_schedule_warn"
128 #define ACL_DEF_THREADS_SCHEDULE_WARN 100
130 
131 #define ACL_VAR_THREADS_SCHEDULE_WAIT "ioctl_schedule_wait"
132 #define ACL_DEF_THREADS_SCHEDULE_WAIT 50
134 
135 #define ACL_VAR_THREADS_CHECK_INTER "ioctl_check_inter"
136 #define ACL_DEF_THREADS_CHECK_INTER 100
137 extern int acl_var_threads_check_inter;
138 
139 #define ACL_VAR_THREADS_QLEN_WARN "ioctl_qlen_warn"
140 #define ACL_DEF_THREADS_QLEN_WARN 0
141 extern int acl_var_threads_qlen_warn;
142 
143 #define ACL_VAR_THREADS_DISPATCH_ADDR "ioctl_dispatch_addr"
144 #define ACL_DEF_THREADS_DISPATCH_ADDR ""
145 extern char *acl_var_threads_dispatch_addr;
146 
147 #define ACL_VAR_THREADS_DISPATCH_TYPE "ioctl_dispatch_type"
148 #define ACL_DEF_THREADS_DISPATCH_TYPE "default"
149 extern char *acl_var_threads_dispatch_type;
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* ACL_CLIENT_ONLY */
156 #endif
char * acl_var_threads_queue_dir
int acl_var_threads_master_maxproc
int acl_var_threads_pool_limit
char * acl_var_threads_deny_banner
int acl_var_threads_use_limit
int acl_var_threads_schedule_warn
int acl_var_threads_buf_size
int acl_var_threads_rw_timeout
int acl_var_threads_quick_abort
int acl_var_threads_check_inter
char * acl_var_threads_owner
long long int acl_var_threads_core_limit
int acl_var_threads_enable_dog
int acl_var_threads_daemon_timeout
int acl_var_threads_thread_idle
int acl_var_threads_idle_limit
char * acl_var_threads_procname
int acl_var_threads_thread_stacksize
char * acl_var_threads_log_file
char * acl_var_threads_access_allow
int acl_var_threads_status_notify
int acl_var_threads_qlen_warn
int acl_var_threads_delay_sec
char * acl_var_threads_dispatch_addr
char * acl_var_threads_dispatch_type
int acl_var_threads_max_debug
int acl_var_threads_max_accept
char * acl_var_threads_log_debug
int acl_var_threads_disable_core_onexit
int acl_var_threads_delay_usec
int acl_var_threads_schedule_wait
int acl_var_threads_batadd
int acl_var_threads_enable_core
char * acl_var_threads_event_mode