Klaus Demo nginx / d562468
update comments Igor Sysoev 12 years ago
1 changed file(s) with 4 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
100100
101101 pc->connection = c;
102102
103 /*
104 * TODO: MT: - ngx_atomic_fetch_add()
105 * or protection by critical section or mutex
106 *
107 * TODO: MP: - allocated in a shared memory
108 * - ngx_atomic_fetch_add()
109 * or protection by critical section or mutex
110 */
111
112103 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1);
113104
114105 #if (NGX_THREADS)
106
107 /* TODO: lock event when call completion handler */
108
115109 rev->lock = pc->lock;
116110 wev->lock = pc->lock;
117111 rev->own_lock = &c->lock;
118112 wev->own_lock = &c->lock;
113
119114 #endif
120115
121116 if (ngx_add_conn) {