comparison src/event/ngx_event_timer.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 5238e93961a1
comparison
equal deleted inserted replaced
229:ce6b72fe33fe 230:1119faf4635a
12 12
13 ngx_rbtree_t *ngx_event_timer_rbtree; 13 ngx_rbtree_t *ngx_event_timer_rbtree;
14 ngx_rbtree_t ngx_event_timer_sentinel; 14 ngx_rbtree_t ngx_event_timer_sentinel;
15 15
16 16
17 int ngx_event_timer_init(ngx_cycle_t *cycle) 17 void ngx_event_timer_init(void)
18 { 18 {
19 if (ngx_event_timer_rbtree) { 19 if (ngx_event_timer_rbtree) {
20 return NGX_OK; 20 return;
21 } 21 }
22 22
23 ngx_event_timer_rbtree = &ngx_event_timer_sentinel; 23 ngx_event_timer_rbtree = &ngx_event_timer_sentinel;
24
25 #if 0
26 ngx_event_timer_sentinel.left = &ngx_event_timer_sentinel;
27 ngx_event_timer_sentinel.right = &ngx_event_timer_sentinel;
28 ngx_event_timer_sentinel.parent = &ngx_event_timer_sentinel;
29 #endif
30
31 return NGX_OK;
32 }
33
34
35 void ngx_event_timer_done(ngx_cycle_t *cycle)
36 {
37 } 24 }
38 25
39 26
40 ngx_msec_t ngx_event_find_timer(void) 27 ngx_msec_t ngx_event_find_timer(void)
41 { 28 {