comparison src/http/ngx_http_cache.h @ 2720:b3b8c66bd520

support attaching to an existent Win32 shared memory
author Igor Sysoev <igor@sysoev.ru>
date Sat, 18 Apr 2009 19:27:28 +0000
parents d19979e0d980
children 8e3e31fd00a9 f892042956e3
comparison
equal deleted inserted replaced
2719:9237cf8b400b 2720:b3b8c66bd520
92 u_short header_start; 92 u_short header_start;
93 u_short body_start; 93 u_short body_start;
94 } ngx_http_file_cache_header_t; 94 } ngx_http_file_cache_header_t;
95 95
96 96
97 typedef struct {
98 ngx_rbtree_t rbtree;
99 ngx_rbtree_node_t sentinel;
100 ngx_queue_t queue;
101 ngx_atomic_t cold;
102 off_t size;
103 } ngx_http_file_cache_sh_t;
104
105
97 struct ngx_http_file_cache_s { 106 struct ngx_http_file_cache_s {
98 ngx_rbtree_t *rbtree; 107 ngx_http_file_cache_sh_t *sh;
99 ngx_queue_t *queue;
100 ngx_slab_pool_t *shpool; 108 ngx_slab_pool_t *shpool;
101 109
102 ngx_path_t *path; 110 ngx_path_t *path;
103
104 ngx_atomic_t *cold;
105 off_t *size;
106 111
107 off_t max_size; 112 off_t max_size;
108 size_t bsize; 113 size_t bsize;
109 114
110 time_t inactive; 115 time_t inactive;