Mercurial > hg > nginx
comparison src/event/modules/ngx_aio_module.c @ 63:36d2c25cc9bb
nginx-0.0.1-2003-02-26-23:21:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 26 Feb 2003 20:21:43 +0000 |
parents | 669801705ab1 |
children | 637625a2acdb |
comparison
equal
deleted
inserted
replaced
62:8ccba41a678e | 63:36d2c25cc9bb |
---|---|
1 | 1 |
2 #include <ngx_config.h> | |
3 | |
4 #include <ngx_core.h> | |
5 #include <ngx_types.h> | |
6 #include <ngx_log.h> | |
7 #include <ngx_connection.h> | |
8 #include <ngx_event.h> | |
9 #include <ngx_event_timer.h> | |
10 | |
11 #if (HAVE_KQUEUE) | |
12 #include <ngx_kqueue_module.h> | |
13 #endif | |
14 | |
15 | |
16 int ngx_aio_init(int max_connections, ngx_log_t *log) | |
17 { | |
18 #if (HAVE_KQUEUE) | |
19 | |
20 int rc; | |
21 | |
22 rc = ngx_kqueue_init(max_connections, log); | |
23 | |
24 ngx_event_flags = NGX_HAVE_AIO_EVENT; | |
25 ngx_write_chain_proc = ngx_aio_write_chain; | |
26 | |
27 return rc; | |
28 | |
29 #endif | |
30 } | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 #if 0 | |
2 /* 1 */ | 37 /* 1 */ |
3 int ngx_posix_aio_process_events(ngx_log_t *log) | 38 int ngx_posix_aio_process_events(ngx_log_t *log) |
4 { | 39 { |
5 listen via SIGIO; | 40 listen via SIGIO; |
6 aio_* via SIGxxx; | 41 aio_* via SIGxxx; |
45 | 80 |
46 void aio_sig_handler(int signo, siginfo_t *siginfo, void *context) | 81 void aio_sig_handler(int signo, siginfo_t *siginfo, void *context) |
47 { | 82 { |
48 push siginfo->si_value.sival_ptr | 83 push siginfo->si_value.sival_ptr |
49 } | 84 } |
50 | 85 #endif |