Mercurial > hg > nginx
comparison src/event/ngx_event_accept.c @ 5820:3377f9459e99
Events: removed broken thread support from posted events.
It's mostly dead code. And the idea of thread support for this task has
been deprecated.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 01 Sep 2014 18:20:03 +0400 |
parents | 524741fd50ed |
children | 4dc8e7b62216 |
comparison
equal
deleted
inserted
replaced
5819:8e7ee4c70a3c | 5820:3377f9459e99 |
---|---|
260 | 260 |
261 #if (NGX_STAT_STUB) | 261 #if (NGX_STAT_STUB) |
262 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); | 262 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); |
263 #endif | 263 #endif |
264 | 264 |
265 #if (NGX_THREADS) | |
266 rev->lock = &c->lock; | |
267 wev->lock = &c->lock; | |
268 rev->own_lock = &c->lock; | |
269 wev->own_lock = &c->lock; | |
270 #endif | |
271 | |
272 if (ls->addr_ntop) { | 265 if (ls->addr_ntop) { |
273 c->addr_text.data = ngx_pnalloc(c->pool, ls->addr_text_max_len); | 266 c->addr_text.data = ngx_pnalloc(c->pool, ls->addr_text_max_len); |
274 if (c->addr_text.data == NULL) { | 267 if (c->addr_text.data == NULL) { |
275 ngx_close_accepted_connection(c); | 268 ngx_close_accepted_connection(c); |
276 return; | 269 return; |