comparison src/event/modules/ngx_aio_module.c @ 305:4b1a3a4acc60

nginx-0.0.3-2004-04-02-19:13:20 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 02 Apr 2004 15:13:20 +0000
parents bdd631bf1a1c
children 5ce6561246a5
comparison
equal deleted inserted replaced
304:bcbe876f4262 305:4b1a3a4acc60
12 static int ngx_aio_init(ngx_cycle_t *cycle); 12 static int ngx_aio_init(ngx_cycle_t *cycle);
13 static void ngx_aio_done(ngx_cycle_t *cycle); 13 static void ngx_aio_done(ngx_cycle_t *cycle);
14 static int ngx_aio_add_event(ngx_event_t *ev, int event, u_int flags); 14 static int ngx_aio_add_event(ngx_event_t *ev, int event, u_int flags);
15 static int ngx_aio_del_event(ngx_event_t *ev, int event, u_int flags); 15 static int ngx_aio_del_event(ngx_event_t *ev, int event, u_int flags);
16 static int ngx_aio_del_connection(ngx_connection_t *c, u_int flags); 16 static int ngx_aio_del_connection(ngx_connection_t *c, u_int flags);
17 static int ngx_aio_process_events(ngx_log_t *log); 17 static int ngx_aio_process_events(ngx_cycle_t *cycle);
18 18
19 19
20 ngx_os_io_t ngx_os_aio = { 20 ngx_os_io_t ngx_os_aio = {
21 ngx_aio_read, 21 ngx_aio_read,
22 ngx_aio_read_chain, 22 ngx_aio_read_chain,
51 NGX_MODULE, 51 NGX_MODULE,
52 &ngx_aio_module_ctx, /* module context */ 52 &ngx_aio_module_ctx, /* module context */
53 NULL, /* module directives */ 53 NULL, /* module directives */
54 NGX_EVENT_MODULE, /* module type */ 54 NGX_EVENT_MODULE, /* module type */
55 NULL, /* init module */ 55 NULL, /* init module */
56 NULL /* init child */ 56 NULL /* init process */
57 }; 57 };
58 58
59 59
60 60
61 #if (HAVE_KQUEUE) 61 #if (HAVE_KQUEUE)
135 135
136 return NGX_OK; 136 return NGX_OK;
137 } 137 }
138 138
139 139
140 static int ngx_aio_process_events(ngx_log_t *log) 140 static int ngx_aio_process_events(ngx_cycle_t *cycle)
141 { 141 {
142 return ngx_kqueue_module_ctx.actions.process(log); 142 return ngx_kqueue_module_ctx.actions.process(cycle);
143 } 143 }
144 144
145 #endif /* HAVE_KQUEUE */ 145 #endif /* HAVE_KQUEUE */
146 146
147 147