comparison src/event/modules/ngx_win32_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 466bd63b63d1
comparison
equal deleted inserted replaced
5820:3377f9459e99 5821:3f5f0ab59b35
219 ngx_uint_t flags) 219 ngx_uint_t flags)
220 { 220 {
221 int ready, nready; 221 int ready, nready;
222 ngx_err_t err; 222 ngx_err_t err;
223 ngx_uint_t i, found; 223 ngx_uint_t i, found;
224 ngx_event_t *ev, **queue; 224 ngx_event_t *ev;
225 ngx_queue_t *queue;
225 struct timeval tv, *tp; 226 struct timeval tv, *tp;
226 ngx_connection_t *c; 227 ngx_connection_t *c;
227 228
228 #if (NGX_DEBUG) 229 #if (NGX_DEBUG)
229 if (cycle->log->log_level & NGX_LOG_DEBUG_ALL) { 230 if (cycle->log->log_level & NGX_LOG_DEBUG_ALL) {