From: Igor Sysoev Date: Wed, 25 Nov 2009 18:03:59 +0000 (+0000) Subject: update comments X-Git-Tag: release-0.8.29~8 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=d5624689cb055c7ae77f22f4802ce5f0cf0f3dc6;p=nginx.git update comments --- diff --git a/src/event/ngx_event_connect.c b/src/event/ngx_event_connect.c index dc1407563..fb8fd2110 100644 --- a/src/event/ngx_event_connect.c +++ b/src/event/ngx_event_connect.c @@ -101,22 +101,17 @@ ngx_event_connect_peer(ngx_peer_connection_t *pc) pc->connection = c; - /* - * TODO: MT: - ngx_atomic_fetch_add() - * or protection by critical section or mutex - * - * TODO: MP: - allocated in a shared memory - * - ngx_atomic_fetch_add() - * or protection by critical section or mutex - */ - c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); #if (NGX_THREADS) + + /* TODO: lock event when call completion handler */ + rev->lock = pc->lock; wev->lock = pc->lock; rev->own_lock = &c->lock; wev->own_lock = &c->lock; + #endif if (ngx_add_conn) {