Mercurial > hg > nginx
comparison src/event/modules/ngx_eventport_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 | d84f0abd4a53 |
comparison
equal
deleted
inserted
replaced
5820:3377f9459e99 | 5821:3f5f0ab59b35 |
---|---|
412 int n, revents; | 412 int n, revents; |
413 u_int events; | 413 u_int events; |
414 ngx_err_t err; | 414 ngx_err_t err; |
415 ngx_int_t instance; | 415 ngx_int_t instance; |
416 ngx_uint_t i, level; | 416 ngx_uint_t i, level; |
417 ngx_event_t *ev, *rev, *wev, **queue; | 417 ngx_event_t *ev, *rev, *wev; |
418 ngx_queue_t *queue; | |
418 ngx_connection_t *c; | 419 ngx_connection_t *c; |
419 struct timespec ts, *tp; | 420 struct timespec ts, *tp; |
420 | 421 |
421 if (timer == NGX_TIMER_INFINITE) { | 422 if (timer == NGX_TIMER_INFINITE) { |
422 tp = NULL; | 423 tp = NULL; |