summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_cache.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-18 19:27:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-18 19:27:28 +0000
commitf7a08d5f9ab224c7d3751693c1ba159a5d6d5900 (patch)
tree09afd5284fde0f9f2b015164f334a81b9a9e00b8 /src/http/ngx_http_cache.h
parent6ac68bcc4c3cbc2711fccbc78d6df3164c6dbde3 (diff)
downloadnginx-f7a08d5f9ab224c7d3751693c1ba159a5d6d5900.tar.gz
nginx-f7a08d5f9ab224c7d3751693c1ba159a5d6d5900.tar.bz2
support attaching to an existent Win32 shared memory
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_cache.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index f84c61895..232f09674 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -94,16 +94,21 @@ typedef struct {
} ngx_http_file_cache_header_t;
+typedef struct {
+ ngx_rbtree_t rbtree;
+ ngx_rbtree_node_t sentinel;
+ ngx_queue_t queue;
+ ngx_atomic_t cold;
+ off_t size;
+} ngx_http_file_cache_sh_t;
+
+
struct ngx_http_file_cache_s {
- ngx_rbtree_t *rbtree;
- ngx_queue_t *queue;
+ ngx_http_file_cache_sh_t *sh;
ngx_slab_pool_t *shpool;
ngx_path_t *path;
- ngx_atomic_t *cold;
- off_t *size;
-
off_t max_size;
size_t bsize;