comparison src/event/modules/ngx_select_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
212 ngx_uint_t flags) 212 ngx_uint_t flags)
213 { 213 {
214 int ready, nready; 214 int ready, nready;
215 ngx_err_t err; 215 ngx_err_t err;
216 ngx_uint_t i, found; 216 ngx_uint_t i, found;
217 ngx_event_t *ev, **queue; 217 ngx_event_t *ev;
218 ngx_queue_t *queue;
218 struct timeval tv, *tp; 219 struct timeval tv, *tp;
219 ngx_connection_t *c; 220 ngx_connection_t *c;
220 221
221 if (max_fd == -1) { 222 if (max_fd == -1) {
222 for (i = 0; i < nevents; i++) { 223 for (i = 0; i < nevents; i++) {