Mercurial > hg > nginx
diff src/event/ngx_event.c @ 60:50186b49f2ad
nginx-0.0.1-2003-02-11-10:14:40 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 Feb 2003 07:14:40 +0000 |
parents | e8cdc2989cee |
children | 36d2c25cc9bb |
line wrap: on
line diff
--- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -36,33 +36,9 @@ ngx_event_t *ngx_read_events, *n #if !(USE_KQUEUE) -#if (HAVE_KQUEUE) - -#if 0 -ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; -#elif 0 -ngx_event_type_e ngx_event_type = NGX_POLL_EVENT; -#else -ngx_event_type_e ngx_event_type = NGX_KQUEUE_EVENT; -#endif - -#elif (HAVE_DEVPOLL) +ngx_event_type_e ngx_event_type; -#if 0 -ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; -#elif 0 -ngx_event_type_e ngx_event_type = NGX_POLL_EVENT; -#else -ngx_event_type_e ngx_event_type = NGX_DEVPOLL_EVENT; -#endif - -#else - -ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; - -#endif - -int ngx_event_flags; +int ngx_event_flags; ngx_event_actions_t ngx_event_actions; @@ -97,8 +73,17 @@ void ngx_pre_thread(ngx_array_t *ls, ngx /* STUB */ int max_connections = 512; -#if (HAVE_IOCP) - ngx_event_type = NGX_IOCP_EVENT; +#if 0 + ngx_event_type = NGX_POLL_EVENT_N; +#endif +#if 1 + ngx_event_type = NGX_KQUEUE_EVENT_N; +#endif +#if 0 + ngx_event_type = NGX_DEVPOLL_EVENT_N; +#endif +#if 0 + ngx_event_type = NGX_IOCP_EVENT_N; #endif if (ngx_init_events(max_connections, log) == NGX_ERROR) {