Mercurial > hg > nginx
comparison src/event/ngx_event_timer.c @ 209:e1c815be05ae
nginx-0.0.1-2003-12-09-18:08:11 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 09 Dec 2003 15:08:11 +0000 |
parents | 6e0fef527732 |
children | 00cafae0bdf1 |
comparison
equal
deleted
inserted
replaced
208:0b67be7d4489 | 209:e1c815be05ae |
---|---|
8 ngx_rbtree_t ngx_event_timer_sentinel; | 8 ngx_rbtree_t ngx_event_timer_sentinel; |
9 | 9 |
10 | 10 |
11 int ngx_event_timer_init(ngx_cycle_t *cycle) | 11 int ngx_event_timer_init(ngx_cycle_t *cycle) |
12 { | 12 { |
13 if (cycle->old_cycle) { | |
14 return NGX_OK; | |
15 } | |
16 | |
13 ngx_event_timer_rbtree = &ngx_event_timer_sentinel; | 17 ngx_event_timer_rbtree = &ngx_event_timer_sentinel; |
14 ngx_event_timer_sentinel.left = &ngx_event_timer_sentinel; | 18 ngx_event_timer_sentinel.left = &ngx_event_timer_sentinel; |
15 ngx_event_timer_sentinel.right = &ngx_event_timer_sentinel; | 19 ngx_event_timer_sentinel.right = &ngx_event_timer_sentinel; |
16 ngx_event_timer_sentinel.parent = &ngx_event_timer_sentinel; | 20 ngx_event_timer_sentinel.parent = &ngx_event_timer_sentinel; |
17 | 21 |