Mercurial > hg > nginx
comparison src/event/ngx_event_connect.c @ 379:73688d5d7fc3
nginx-0.0.7-2004-07-06-20:12:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Jul 2004 16:12:16 +0000 |
parents | 41437e4fd9b4 |
children | 5ce6561246a5 |
comparison
equal
deleted
inserted
replaced
378:b7d3625c9336 | 379:73688d5d7fc3 |
---|---|
181 | 181 |
182 instance = rev->instance; | 182 instance = rev->instance; |
183 rinstance = rev->returned_instance; | 183 rinstance = rev->returned_instance; |
184 winstance = wev->returned_instance; | 184 winstance = wev->returned_instance; |
185 | 185 |
186 #if (NGX_THREADS) | |
187 if (*(rev->lock)) { | |
188 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pc->log, 0, | |
189 "spinlock event " PTR_FMT " in connect", rev); | |
190 ngx_spinlock(rev->lock, 1000); | |
191 ngx_unlock(rev->lock); | |
192 } | |
193 #endif | |
194 | |
186 ngx_memzero(c, sizeof(ngx_connection_t)); | 195 ngx_memzero(c, sizeof(ngx_connection_t)); |
187 ngx_memzero(rev, sizeof(ngx_event_t)); | 196 ngx_memzero(rev, sizeof(ngx_event_t)); |
188 ngx_memzero(wev, sizeof(ngx_event_t)); | 197 ngx_memzero(wev, sizeof(ngx_event_t)); |
189 | 198 |
190 if (ngx_event_flags & NGX_HAVE_INSTANCE_EVENT) { | 199 if (ngx_event_flags & NGX_HAVE_INSTANCE_EVENT) { |