Mercurial > hg > nginx
comparison src/event/ngx_event_accept.c @ 370:54f76b0b8dca
nginx-0.0.7-2004-06-27-22:01:57 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 27 Jun 2004 18:01:57 +0000 |
parents | 7b96b7f8a6af |
children | 018569a8f09c |
comparison
equal
deleted
inserted
replaced
369:9c2515d70489 | 370:54f76b0b8dca |
---|---|
276 * or protection by critical section or light mutex | 276 * or protection by critical section or light mutex |
277 */ | 277 */ |
278 | 278 |
279 c->number = ngx_atomic_inc(ngx_connection_counter); | 279 c->number = ngx_atomic_inc(ngx_connection_counter); |
280 | 280 |
281 #if (NGX_THREADS) | |
282 rev->lock = &c->lock; | |
283 wev->lock = &c->lock; | |
284 #endif | |
285 | |
281 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, | 286 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, |
282 "accept: fd:%d c:%d", s, c->number); | 287 "accept: fd:%d c:%d", s, c->number); |
283 | 288 |
284 #if (NGX_DEBUG) | 289 #if (NGX_DEBUG) |
285 { | 290 { |