diff src/event/ngx_event.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 50186b49f2ad
children 34d647deb1da
line wrap: on
line diff
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -25,6 +25,10 @@
 #include <ngx_kqueue_module.h>
 #endif
 
+#if (HAVE_AIO)
+#include <ngx_aio_module.h>
+#endif
+
 #if (HAVE_IOCP)
 #include <ngx_event_acceptex.h>
 #include <ngx_iocp_module.h>
@@ -54,6 +58,9 @@ static int (*ngx_event_init[]) (int max_
 #if (HAVE_KQUEUE)
     ngx_kqueue_init,
 #endif
+#if (HAVE_AIO)
+    ngx_aio_init,
+#endif
 #if (HAVE_IOCP)
     ngx_iocp_init
 #endif
@@ -83,6 +90,9 @@ void ngx_pre_thread(ngx_array_t *ls, ngx
     ngx_event_type = NGX_DEVPOLL_EVENT_N;
 #endif
 #if 0
+    ngx_event_type = NGX_AIO_EVENT_N;
+#endif
+#if 0
     ngx_event_type = NGX_IOCP_EVENT_N;
 #endif