Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #include <ngx_config.h>
0009 #include <ngx_core.h>
0010 #include <ngx_event.h>
0011 
0012 
0013 ngx_queue_t  ngx_posted_accept_events;
0014 ngx_queue_t  ngx_posted_events;
0015 
0016 
0017 void
0018 ngx_event_process_posted(ngx_cycle_t *cycle, ngx_queue_t *posted)
0019 {
0020     ngx_queue_t  *q;
0021     ngx_event_t  *ev;
0022 
0023     while (!ngx_queue_empty(posted)) {
0024 
0025         q = ngx_queue_head(posted);
0026         ev = ngx_queue_data(q, ngx_event_t, queue);
0027 
0028         ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
0029                       "posted event %p", ev);
0030 
0031         ngx_delete_posted_event(ev);
0032 
0033         ev->handler(ev);
0034     }
0035 }