comparison src/core/ngx_open_file_cache.h @ 1765:b0cbe16febaf

use ngx_queue.h
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Dec 2007 15:33:15 +0000
parents 1c4b231ba90c
children c42431762903
comparison
equal deleted inserted replaced
1764:bead8ca82404 1765:b0cbe16febaf
34 34
35 typedef struct ngx_cached_open_file_s ngx_cached_open_file_t; 35 typedef struct ngx_cached_open_file_s ngx_cached_open_file_t;
36 36
37 struct ngx_cached_open_file_s { 37 struct ngx_cached_open_file_s {
38 ngx_rbtree_node_t node; 38 ngx_rbtree_node_t node;
39 ngx_cached_open_file_t *prev; 39 ngx_queue_t queue;
40 ngx_cached_open_file_t *next;
41 40
42 u_char *name; 41 u_char *name;
43 time_t created; 42 time_t created;
44 time_t accessed; 43 time_t accessed;
45 44
62 61
63 62
64 typedef struct { 63 typedef struct {
65 ngx_rbtree_t rbtree; 64 ngx_rbtree_t rbtree;
66 ngx_rbtree_node_t sentinel; 65 ngx_rbtree_node_t sentinel;
67 ngx_cached_open_file_t list_head; 66 ngx_queue_t expire_queue;
68 ngx_cached_open_file_t list_tail;
69 67
70 ngx_uint_t current; 68 ngx_uint_t current;
71 ngx_uint_t max; 69 ngx_uint_t max;
72 time_t inactive; 70 time_t inactive;
73 } ngx_open_file_cache_t; 71 } ngx_open_file_cache_t;