diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-07-07 06:11:50 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-07-07 06:11:50 +0000 |
| commit | 9d639520aa95f0ff3882ea348d4347f69cbae493 (patch) | |
| tree | a163ada230b77745dc9117df4a2a5dce756115cc /src/event/modules/ngx_aio_module.c | |
| parent | 340b03b201c77f394cc70fda4d960ad6c3b68905 (diff) | |
| download | nginx-9d639520aa95f0ff3882ea348d4347f69cbae493.tar.gz nginx-9d639520aa95f0ff3882ea348d4347f69cbae493.tar.bz2 | |
nginx-0.0.1-2003-07-07-10:11:50 import
Diffstat (limited to 'src/event/modules/ngx_aio_module.c')
| -rw-r--r-- | src/event/modules/ngx_aio_module.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/event/modules/ngx_aio_module.c b/src/event/modules/ngx_aio_module.c index cc48926de..cdfb1b01f 100644 --- a/src/event/modules/ngx_aio_module.c +++ b/src/event/modules/ngx_aio_module.c @@ -9,8 +9,8 @@ #endif -static int ngx_aio_init(ngx_log_t *log); -static void ngx_aio_done(ngx_log_t *log); +static int ngx_aio_init(ngx_cycle_t *cycle); +static void ngx_aio_done(ngx_cycle_t *cycle); static int ngx_aio_add_event(ngx_event_t *ev, int event, u_int flags); static int ngx_aio_del_event(ngx_event_t *ev, int event, u_int flags); static int ngx_aio_del_connection(ngx_connection_t *c); @@ -52,31 +52,33 @@ ngx_module_t ngx_aio_module = { &ngx_aio_module_ctx, /* module context */ NULL, /* module directives */ NGX_EVENT_MODULE, /* module type */ - NULL /* init module */ + NULL, /* init module */ + NULL /* init child */ }; #if (HAVE_KQUEUE) -static int ngx_aio_init(ngx_log_t *log) +static int ngx_aio_init(ngx_cycle_t *cycle) { - if (ngx_kqueue_module_ctx.actions.init(log) == NGX_ERROR) { + if (ngx_kqueue_module_ctx.actions.init(cycle) == NGX_ERROR) { return NGX_ERROR; } + ngx_io = ngx_os_aio; + ngx_event_flags = NGX_HAVE_AIO_EVENT|NGX_USE_AIO_EVENT; ngx_event_actions = ngx_aio_module_ctx.actions; - ngx_io = ngx_os_aio; return NGX_OK; } -static void ngx_aio_done(ngx_log_t *log) +static void ngx_aio_done(ngx_cycle_t *cycle) { - ngx_kqueue_module_ctx.actions.done(log); + ngx_kqueue_module_ctx.actions.done(cycle); } |
