Mercurial > hg > nginx-quic
comparison src/event/modules/ngx_kqueue_module.c @ 112:da763a85be66
nginx-0.0.1-2003-07-04-10:03:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jul 2003 06:03:52 +0000 |
parents | 1c002f2b77ed |
children | d7f606e25b99 |
comparison
equal
deleted
inserted
replaced
111:1c002f2b77ed | 112:da763a85be66 |
---|---|
70 ngx_kqueue_del_event, /* disable an event */ | 70 ngx_kqueue_del_event, /* disable an event */ |
71 NULL, /* add an connection */ | 71 NULL, /* add an connection */ |
72 NULL, /* delete an connection */ | 72 NULL, /* delete an connection */ |
73 ngx_kqueue_process_events, /* process the events */ | 73 ngx_kqueue_process_events, /* process the events */ |
74 ngx_kqueue_init, /* init the events */ | 74 ngx_kqueue_init, /* init the events */ |
75 #if 0 | |
76 ngx_kqueue_commit, /* commit the events */ | |
77 ngx_kqueue_rollback, /* rollback the events */ | |
78 #endif | |
75 ngx_kqueue_done /* done the events */ | 79 ngx_kqueue_done /* done the events */ |
76 } | 80 } |
77 | 81 |
78 }; | 82 }; |
79 | 83 |
80 ngx_module_t ngx_kqueue_module = { | 84 ngx_module_t ngx_kqueue_module = { |
81 NGX_MODULE, | 85 NGX_MODULE, |
82 &ngx_kqueue_module_ctx, /* module context */ | 86 &ngx_kqueue_module_ctx, /* module context */ |
83 ngx_kqueue_commands, /* module directives */ | 87 ngx_kqueue_commands, /* module directives */ |
84 NGX_EVENT_MODULE, /* module type */ | 88 NGX_EVENT_MODULE, /* module type */ |
85 NULL /* init module */ | 89 NULL, /* init module */ |
90 NULL, /* commit module */ | |
91 NULL, /* rollback module */ | |
92 #if 0 | |
93 NULL /* init child */ | |
94 #endif | |
86 }; | 95 }; |
87 | 96 |
88 | 97 |
89 #if 0 | 98 #if 0 |
90 | 99 |
168 } | 177 } |
169 | 178 |
170 nevents = kcf->events; | 179 nevents = kcf->events; |
171 | 180 |
172 ngx_event_timer_commit(cycle, log); | 181 ngx_event_timer_commit(cycle, log); |
173 | |
174 /* TODO: re-add active events with new udata | |
175 if ecf->connections was increased */ | |
176 | 182 |
177 ngx_event_actions = ngx_kqueue_module_ctx.actions; | 183 ngx_event_actions = ngx_kqueue_module_ctx.actions; |
178 ngx_io = ngx_os_io; | 184 ngx_io = ngx_os_io; |
179 | 185 |
180 ngx_event_flags = NGX_HAVE_LEVEL_EVENT | 186 ngx_event_flags = NGX_HAVE_LEVEL_EVENT |