Mercurial > hg > nginx
comparison src/event/ngx_event_connect.c @ 309:2e899477243a
nginx-0.0.3-2004-04-09-20:03:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 09 Apr 2004 16:03:04 +0000 |
parents | 6b91bfbc4123 |
children | ba876b26b76d |
comparison
equal
deleted
inserted
replaced
308:7a0dbd779c6d | 309:2e899477243a |
---|---|
200 * TODO: MP: - allocated in a shared memory | 200 * TODO: MP: - allocated in a shared memory |
201 * - atomic increment (x86: lock xadd) | 201 * - atomic increment (x86: lock xadd) |
202 * or protection by critical section or mutex | 202 * or protection by critical section or mutex |
203 */ | 203 */ |
204 | 204 |
205 c->number = ngx_atomic_inc(&ngx_connection_counter); | 205 c->number = ngx_atomic_inc(ngx_connection_counter); |
206 | 206 |
207 if (ngx_add_conn) { | 207 if (ngx_add_conn) { |
208 if (ngx_add_conn(c) == NGX_ERROR) { | 208 if (ngx_add_conn(c) == NGX_ERROR) { |
209 return NGX_ERROR; | 209 return NGX_ERROR; |
210 } | 210 } |