comparison src/event/modules/ngx_select_module.c @ 40:d5d4f3bba6f0

nginx-0.0.1-2002-12-26-10:24:21 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 26 Dec 2002 07:24:21 +0000
parents 83fa61cd3d2f
children b288069a8696
comparison
equal deleted inserted replaced
39:83fa61cd3d2f 40:d5d4f3bba6f0
20 static int max_write; 20 static int max_write;
21 #else 21 #else
22 static int max_fd; 22 static int max_fd;
23 #endif 23 #endif
24 24
25 static unsigned int nevents; 25 static u_int nevents;
26 26
27 static ngx_event_t **event_index; 27 static ngx_event_t **event_index;
28 static ngx_event_t **ready_index; 28 static ngx_event_t **ready_index;
29 static ngx_event_t timer_queue; 29 static ngx_event_t timer_queue;
30 /* */ 30 /* */
172 return NGX_OK; 172 return NGX_OK;
173 } 173 }
174 174
175 int ngx_select_process_events(ngx_log_t *log) 175 int ngx_select_process_events(ngx_log_t *log)
176 { 176 {
177 int i, ready, found, nready; 177 int ready, found, nready;
178 u_int timer, delta; 178 u_int i, timer, delta;
179 ngx_event_t *ev; 179 ngx_event_t *ev;
180 ngx_connection_t *c; 180 ngx_connection_t *c;
181 struct timeval tv, *tp; 181 struct timeval tv, *tp;
182 182
183 work_read_fd_set = master_read_fd_set; 183 work_read_fd_set = master_read_fd_set;