Mercurial > hg > nginx
comparison src/event/ngx_event_connect.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 | 957d734362ed |
children | 4dc8e7b62216 |
comparison
equal
deleted
inserted
replaced
5819:8e7ee4c70a3c | 5820:3377f9459e99 |
---|---|
101 wev->log = pc->log; | 101 wev->log = pc->log; |
102 | 102 |
103 pc->connection = c; | 103 pc->connection = c; |
104 | 104 |
105 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); | 105 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); |
106 | |
107 #if (NGX_THREADS) | |
108 | |
109 /* TODO: lock event when call completion handler */ | |
110 | |
111 rev->lock = pc->lock; | |
112 wev->lock = pc->lock; | |
113 rev->own_lock = &c->lock; | |
114 wev->own_lock = &c->lock; | |
115 | |
116 #endif | |
117 | 106 |
118 if (ngx_add_conn) { | 107 if (ngx_add_conn) { |
119 if (ngx_add_conn(c) == NGX_ERROR) { | 108 if (ngx_add_conn(c) == NGX_ERROR) { |
120 goto failed; | 109 goto failed; |
121 } | 110 } |