Mercurial > hg > nginx
comparison src/event/ngx_event.h @ 7:b5481d6fbbd4
nginx-0.0.1-2002-08-29-20:59:54 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 29 Aug 2002 16:59:54 +0000 |
parents | 669801705ab1 |
children | 708f8bb772ec |
comparison
equal
deleted
inserted
replaced
6:669801705ab1 | 7:b5481d6fbbd4 |
---|---|
131 #endif | 131 #endif |
132 | 132 |
133 | 133 |
134 #define ngx_add_timer(ev, time) ngx_add_event(ev, NGX_TIMER_EVENT, time) | 134 #define ngx_add_timer(ev, time) ngx_add_event(ev, NGX_TIMER_EVENT, time) |
135 | 135 |
136 static void ngx_inline ngx_del_timer(ngx_event_t *ev) | |
137 { | |
138 if (ev->timer_prev) | |
139 ev->timer_prev->timer_next = ev->timer_next; | |
140 | |
141 if (ev->timer_next) { | |
142 ev->timer_next->timer_prev = ev->timer_prev; | |
143 ev->timer_next = NULL; | |
144 } | |
145 | |
146 if (ev->timer_prev) | |
147 ev->timer_prev = NULL; | |
148 } | |
149 | |
150 | |
151 | |
152 | |
136 extern ngx_event_t *ngx_read_events; | 153 extern ngx_event_t *ngx_read_events; |
137 extern ngx_event_t *ngx_write_events; | 154 extern ngx_event_t *ngx_write_events; |
138 extern ngx_connection_t *ngx_connections; | 155 extern ngx_connection_t *ngx_connections; |
139 | 156 |
140 #if !(USE_KQUEUE) | 157 #if !(USE_KQUEUE) |