comparison src/event/modules/ngx_rtsig_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
305 { 305 {
306 int signo; 306 int signo;
307 ngx_int_t instance; 307 ngx_int_t instance;
308 ngx_err_t err; 308 ngx_err_t err;
309 siginfo_t si; 309 siginfo_t si;
310 ngx_event_t *rev, *wev, **queue; 310 ngx_event_t *rev, *wev;
311 ngx_queue_t *queue;
311 struct timespec ts, *tp; 312 struct timespec ts, *tp;
312 struct sigaction sa; 313 struct sigaction sa;
313 ngx_connection_t *c; 314 ngx_connection_t *c;
314 ngx_rtsig_conf_t *rtscf; 315 ngx_rtsig_conf_t *rtscf;
315 316
478 { 479 {
479 int name[2], rtsig_max, rtsig_nr, events, ready; 480 int name[2], rtsig_max, rtsig_nr, events, ready;
480 size_t len; 481 size_t len;
481 ngx_err_t err; 482 ngx_err_t err;
482 ngx_uint_t tested, n, i; 483 ngx_uint_t tested, n, i;
483 ngx_event_t *rev, *wev, **queue; 484 ngx_event_t *rev, *wev;
485 ngx_queue_t *queue;
484 ngx_connection_t *c; 486 ngx_connection_t *c;
485 ngx_rtsig_conf_t *rtscf; 487 ngx_rtsig_conf_t *rtscf;
486 488
487 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 489 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
488 "rtsig process overflow"); 490 "rtsig process overflow");