Mercurial > hg > nginx-quic
comparison src/http/ngx_http_busy_lock.c @ 178:a8ff48d26cca
nginx-0.0.1-2003-11-11-00:09:22 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Nov 2003 21:09:22 +0000 |
parents | c0552e5ab567 |
children | c966c09be66b |
comparison
equal
deleted
inserted
replaced
177:4db54fdbcbe7 | 178:a8ff48d26cca |
---|---|
98 | 98 |
99 return NGX_ERROR; | 99 return NGX_ERROR; |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 void ngx_http_busy_unlock_cachable(ngx_http_busy_lock_t *bl, | 103 void ngx_http_busy_unlock(ngx_http_busy_lock_t *bl, |
104 ngx_http_busy_lock_ctx_t *bc) | 104 ngx_http_busy_lock_ctx_t *bc) |
105 { | 105 { |
106 bl->md5_mask[bc->slot / 8] &= ~(1 << (bc->slot & 7)); | 106 if (bl->md5) { |
107 bl->cachable--; | 107 bl->md5_mask[bc->slot / 8] &= ~(1 << (bc->slot & 7)); |
108 bl->cachable--; | |
109 } | |
110 | |
108 bl->busy--; | 111 bl->busy--; |
109 } | 112 } |
110 | 113 |
111 | 114 |
112 static int ngx_http_busy_lock_look_cachable(ngx_http_busy_lock_t *bl, | 115 static int ngx_http_busy_lock_look_cachable(ngx_http_busy_lock_t *bl, |