comparison src/event/ngx_event.c @ 380:5ce6561246a5

nginx-0.0.7-2004-07-07-10:15:04 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 07 Jul 2004 06:15:04 +0000
parents 41437e4fd9b4
children 3f88935a02e8
comparison
equal deleted inserted replaced
379:73688d5d7fc3 380:5ce6561246a5
148 ngx_event_module_t ngx_event_core_module_ctx = { 148 ngx_event_module_t ngx_event_core_module_ctx = {
149 &event_core_name, 149 &event_core_name,
150 ngx_event_create_conf, /* create configuration */ 150 ngx_event_create_conf, /* create configuration */
151 ngx_event_init_conf, /* init configuration */ 151 ngx_event_init_conf, /* init configuration */
152 152
153 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } 153 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
154 }; 154 };
155 155
156 156
157 ngx_module_t ngx_event_core_module = { 157 ngx_module_t ngx_event_core_module = {
158 NGX_MODULE, 158 NGX_MODULE,
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) 282 #if (NGX_THREADS)
283 rev[i].lock = &c[i].lock; 283 rev[i].lock = &c[i].lock;
284 rev[i].own_lock = &c[i].lock;
284 #endif 285 #endif
285 } 286 }
286 287
287 cycle->write_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections, 288 cycle->write_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections,
288 cycle->log); 289 cycle->log);
293 wev = cycle->write_events; 294 wev = cycle->write_events;
294 for (i = 0; i < cycle->connection_n; i++) { 295 for (i = 0; i < cycle->connection_n; i++) {
295 wev[i].closed = 1; 296 wev[i].closed = 1;
296 #if (NGX_THREADS) 297 #if (NGX_THREADS)
297 wev[i].lock = &c[i].lock; 298 wev[i].lock = &c[i].lock;
299 wev[i].own_lock = &c[i].lock;
298 #endif 300 #endif
299 } 301 }
300 302
301 /* for each listening socket */ 303 /* for each listening socket */
302 304