Mercurial > hg > nginx
comparison src/event/modules/ngx_poll_module.c @ 5821:3f5f0ab59b35
Events: processing of posted events changed from LIFO to FIFO.
In theory, this can provide a bit better distribution of latencies.
Also it simplifies the code, since ngx_queue_t is now used instead
of custom implementation.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 01 Sep 2014 18:20:18 +0400 |
parents | 3377f9459e99 |
children | 457ec43dd8d5 |
comparison
equal
deleted
inserted
replaced
5820:3377f9459e99 | 5821:3f5f0ab59b35 |
---|---|
239 ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) | 239 ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) |
240 { | 240 { |
241 int ready, revents; | 241 int ready, revents; |
242 ngx_err_t err; | 242 ngx_err_t err; |
243 ngx_uint_t i, found, level; | 243 ngx_uint_t i, found, level; |
244 ngx_event_t *ev, **queue; | 244 ngx_event_t *ev; |
245 ngx_queue_t *queue; | |
245 ngx_connection_t *c; | 246 ngx_connection_t *c; |
246 | 247 |
247 /* NGX_TIMER_INFINITE == INFTIM */ | 248 /* NGX_TIMER_INFINITE == INFTIM */ |
248 | 249 |
249 #if (NGX_DEBUG0) | 250 #if (NGX_DEBUG0) |