comparison src/event/ngx_event.c @ 377:41437e4fd9b4

nginx-0.0.7-2004-07-05-19:08:23 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 05 Jul 2004 15:08:23 +0000
parents d0451e402e27
children 5ce6561246a5
comparison
equal deleted inserted replaced
376:d0451e402e27 377:41437e4fd9b4
277 } 277 }
278 278
279 rev = cycle->read_events; 279 rev = cycle->read_events;
280 for (i = 0; i < cycle->connection_n; i++) { 280 for (i = 0; i < cycle->connection_n; i++) {
281 rev[i].closed = 1; 281 rev[i].closed = 1;
282 #if (NGX_THREADS)
283 rev[i].lock = &c[i].lock;
284 #endif
282 } 285 }
283 286
284 cycle->write_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections, 287 cycle->write_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections,
285 cycle->log); 288 cycle->log);
286 if (cycle->write_events == NULL) { 289 if (cycle->write_events == NULL) {
288 } 291 }
289 292
290 wev = cycle->write_events; 293 wev = cycle->write_events;
291 for (i = 0; i < cycle->connection_n; i++) { 294 for (i = 0; i < cycle->connection_n; i++) {
292 wev[i].closed = 1; 295 wev[i].closed = 1;
296 #if (NGX_THREADS)
297 wev[i].lock = &c[i].lock;
298 #endif
293 } 299 }
294 300
295 /* for each listening socket */ 301 /* for each listening socket */
296 302
297 s = cycle->listening.elts; 303 s = cycle->listening.elts;