comparison src/event/ngx_event_connect.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 e366ba5db8f8
children 73688d5d7fc3
comparison
equal deleted inserted replaced
376:d0451e402e27 377:41437e4fd9b4
226 * or protection by critical section or mutex 226 * or protection by critical section or mutex
227 */ 227 */
228 228
229 c->number = ngx_atomic_inc(ngx_connection_counter); 229 c->number = ngx_atomic_inc(ngx_connection_counter);
230 230
231 #if (NGX_THREADS)
232 rev->lock = pc->lock;
233 wev->lock = pc->lock;
234 #endif
235
231 if (ngx_add_conn) { 236 if (ngx_add_conn) {
232 if (ngx_add_conn(c) == NGX_ERROR) { 237 if (ngx_add_conn(c) == NGX_ERROR) {
233 return NGX_ERROR; 238 return NGX_ERROR;
234 } 239 }
235 } 240 }