Mercurial > hg > nginx
comparison src/event/ngx_event_accept.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 | ce375c313e96 |
children | f5431a4bbc7d |
comparison
equal
deleted
inserted
replaced
308:7a0dbd779c6d | 309:2e899477243a |
---|---|
268 * TODO: MP: - allocated in a shared memory | 268 * TODO: MP: - allocated in a shared memory |
269 * - atomic increment (x86: lock xadd) | 269 * - atomic increment (x86: lock xadd) |
270 * or protection by critical section or light mutex | 270 * or protection by critical section or light mutex |
271 */ | 271 */ |
272 | 272 |
273 c->number = ngx_atomic_inc(&ngx_connection_counter); | 273 c->number = ngx_atomic_inc(ngx_connection_counter); |
274 | 274 |
275 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, | 275 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, |
276 "accept: fd:%d c:%d", s, c->number); | 276 "accept: fd:%d c:%d", s, c->number); |
277 | 277 |
278 #if (NGX_DEBUG) | 278 #if (NGX_DEBUG) |