Mercurial > hg > nginx-quic
diff src/event/ngx_event_timer.c @ 374:213f17e9f776
nginx-0.0.7-2004-07-02-09:47:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 02 Jul 2004 05:47:00 +0000 |
parents | c9fdfccebc49 |
children | 744ccb59062d |
line wrap: on
line diff
--- a/src/event/ngx_event_timer.c +++ b/src/event/ngx_event_timer.c @@ -110,25 +110,26 @@ void ngx_event_expire_timers(ngx_msec_t #endif ev->timer_set = 0; - ev->timedout = 1; -#if (NGX_THREADS) - ngx_unlock(ev->lock); -#endif if (ngx_threaded) { if (ngx_mutex_lock(ngx_posted_events_mutex) == NGX_ERROR) { return; } + ev->posted_timedout = 1; ngx_post_event(ev); ngx_mutex_unlock(ngx_posted_events_mutex); continue; } + ev->timedout = 1; + ev->event_handler(ev); + continue; } + break; }