comparison src/event/ngx_event_accept.c @ 312:f5431a4bbc7d

nginx-0.0.3-2004-04-13-09:27:03 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 13 Apr 2004 05:27:03 +0000
parents 2e899477243a
children 39b6f2df45c0
comparison
equal deleted inserted replaced
311:11ff50a35d6d 312:f5431a4bbc7d
326 ngx_int_t ngx_trylock_accept_mutex(ngx_cycle_t *cycle) 326 ngx_int_t ngx_trylock_accept_mutex(ngx_cycle_t *cycle)
327 { 327 {
328 if (*ngx_accept_mutex == 0 328 if (*ngx_accept_mutex == 0
329 && ngx_atomic_cmp_set(ngx_accept_mutex, 0, ngx_pid)) 329 && ngx_atomic_cmp_set(ngx_accept_mutex, 0, ngx_pid))
330 { 330 {
331
332 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 331 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
333 "accept mutex locked"); 332 "accept mutex locked");
334 333
335 if (!ngx_accept_mutex_held) { 334 if (!ngx_accept_mutex_held) {
336 if (ngx_enable_accept_events(cycle) == NGX_ERROR) { 335 if (ngx_enable_accept_events(cycle) == NGX_ERROR) {