]> git.kaiwu.me - nginx.git/commitdiff
update comments
authorIgor Sysoev <igor@sysoev.ru>
Wed, 25 Nov 2009 18:03:59 +0000 (18:03 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 25 Nov 2009 18:03:59 +0000 (18:03 +0000)
src/event/ngx_event_connect.c

index dc1407563df619d63f135ff5998357b27397618d..fb8fd21105a274be3f422c6cf53fa752891c2aa0 100644 (file)
@@ -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) {