diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-28 20:41:47 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-28 20:41:47 +0300 |
commit | c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7 (patch) | |
tree | d2c80489d1fe646f689966411fc8659355acbd40 /src/http/ngx_http_cache.h | |
parent | 877df63f345e48bc2cb61dde86a207748051b81a (diff) |
nginx-0.0.1-2003-11-28-20:41:47 import
Diffstat (limited to 'src/http/ngx_http_cache.h')
-rw-r--r-- | src/http/ngx_http_cache.h | 9 |
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); |