Mercurial > hg > nginx
comparison src/event/modules/ngx_poll_module.c @ 230:1119faf4635a
nginx-0.0.1-2004-01-16-09:15:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Jan 2004 06:15:48 +0000 |
parents | 05592fd7a436 |
children | e6c005b66b3a |
comparison
equal
deleted
inserted
replaced
229:ce6b72fe33fe | 230:1119faf4635a |
---|---|
99 ngx_alloc(sizeof(ngx_event_t *) * 2 * cycle->connection_n, | 99 ngx_alloc(sizeof(ngx_event_t *) * 2 * cycle->connection_n, |
100 cycle->log), | 100 cycle->log), |
101 NGX_ERROR); | 101 NGX_ERROR); |
102 } | 102 } |
103 | 103 |
104 if (ngx_event_timer_init(cycle) == NGX_ERROR) { | |
105 return NGX_ERROR; | |
106 } | |
107 | |
108 ngx_io = ngx_os_io; | 104 ngx_io = ngx_os_io; |
109 | 105 |
110 ngx_event_actions = ngx_poll_module_ctx.actions; | 106 ngx_event_actions = ngx_poll_module_ctx.actions; |
111 | 107 |
112 ngx_event_flags = NGX_USE_LEVEL_EVENT|NGX_USE_ONESHOT_EVENT; | 108 ngx_event_flags = NGX_USE_LEVEL_EVENT|NGX_USE_ONESHOT_EVENT; |
115 } | 111 } |
116 | 112 |
117 | 113 |
118 static void ngx_poll_done(ngx_cycle_t *cycle) | 114 static void ngx_poll_done(ngx_cycle_t *cycle) |
119 { | 115 { |
120 ngx_event_timer_done(cycle); | |
121 | |
122 ngx_free(event_list); | 116 ngx_free(event_list); |
123 ngx_free(event_index); | 117 ngx_free(event_index); |
124 ngx_free(ready_index); | 118 ngx_free(ready_index); |
125 | 119 |
126 event_list = NULL; | 120 event_list = NULL; |