comparison src/event/modules/ngx_epoll_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 466bd63b63d1
comparison
equal deleted inserted replaced
5820:3377f9459e99 5821:3f5f0ab59b35
566 int events; 566 int events;
567 uint32_t revents; 567 uint32_t revents;
568 ngx_int_t instance, i; 568 ngx_int_t instance, i;
569 ngx_uint_t level; 569 ngx_uint_t level;
570 ngx_err_t err; 570 ngx_err_t err;
571 ngx_event_t *rev, *wev, **queue; 571 ngx_event_t *rev, *wev;
572 ngx_queue_t *queue;
572 ngx_connection_t *c; 573 ngx_connection_t *c;
573 574
574 /* NGX_TIMER_INFINITE == INFTIM */ 575 /* NGX_TIMER_INFINITE == INFTIM */
575 576
576 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 577 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,