summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_cache.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-28 17:41:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-28 17:41:47 +0000
commitc2bba092eb07ea5fcd2e2ee987e3a304f755a3c7 (patch)
treed2c80489d1fe646f689966411fc8659355acbd40 /src/http/ngx_http_cache.h
parent877df63f345e48bc2cb61dde86a207748051b81a (diff)
downloadnginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.tar.gz
nginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.tar.bz2
nginx-0.0.1-2003-11-28-20:41:47 import
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_cache.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index aa9d28970..feaecd48e 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -74,12 +74,6 @@ typedef struct {
} ngx_http_cache_conf_t;
-#define ngx_http_cache_unlock(ch, ce) \
- ngx_mutex_lock(&ch->mutex); \
- ce->refs--; \
- ngx_mutex_unlock(&ch->mutex);
-
-
#define NGX_HTTP_CACHE_STALE 1
#define NGX_HTTP_CACHE_AGED 2
@@ -96,6 +90,9 @@ ngx_http_cache_t *ngx_http_cache_get(ngx_http_cache_hash_t *cache,
ngx_http_cache_t *ngx_http_cache_alloc(ngx_http_cache_hash_t *cache,
ngx_str_t *key, uint32_t crc,
ngx_log_t *log);
+void ngx_http_cache_unlock(ngx_http_cache_hash_t *hash,
+ ngx_http_cache_t *cache, ngx_log_t *log);
+
int ngx_garbage_collector_http_cache_handler(ngx_gc_t *gc, ngx_str_t *name,
ngx_dir_t *dir);