Mercurial > hg > nginx-quic
comparison src/event/modules/ngx_kqueue_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 |
---|---|
493 { | 493 { |
494 int events, n; | 494 int events, n; |
495 ngx_int_t i, instance; | 495 ngx_int_t i, instance; |
496 ngx_uint_t level; | 496 ngx_uint_t level; |
497 ngx_err_t err; | 497 ngx_err_t err; |
498 ngx_event_t *ev, **queue; | 498 ngx_event_t *ev; |
499 ngx_queue_t *queue; | |
499 struct timespec ts, *tp; | 500 struct timespec ts, *tp; |
500 | 501 |
501 if (ngx_threaded) { | 502 if (ngx_threaded) { |
502 if (ngx_kqueue_process_changes(cycle, 0) == NGX_ERROR) { | 503 if (ngx_kqueue_process_changes(cycle, 0) == NGX_ERROR) { |
503 return NGX_ERROR; | 504 return NGX_ERROR; |