aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_cache.h')
-rw-r--r--src/http/ngx_http_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index 8013ee3ac..823f74d87 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -61,6 +61,9 @@ typedef struct {
size_t nelts;
time_t life;
time_t update;
+#if (NGX_THREADS)
+ ngx_mutex_t mutex;
+#endif
ngx_pool_t *pool;
} ngx_http_cache_hash_t;