Mercurial > hg > nginx
comparison src/core/ngx_buf.h @ 4114:5db098f97e0e
API change: ngx_chain_update_chains() now requires pool.
The ngx_chain_update_chains() needs pool to free chain links used for buffers
with non-matching tags. Providing one helps to reduce memory consumption
for long-lived requests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 15 Sep 2011 16:03:17 +0000 |
parents | 4c90c9129a82 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4113:a28ba1cdec27 | 4114:5db098f97e0e |
---|---|
152 ngx_int_t ngx_chain_writer(void *ctx, ngx_chain_t *in); | 152 ngx_int_t ngx_chain_writer(void *ctx, ngx_chain_t *in); |
153 | 153 |
154 ngx_int_t ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, | 154 ngx_int_t ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, |
155 ngx_chain_t *in); | 155 ngx_chain_t *in); |
156 ngx_chain_t *ngx_chain_get_free_buf(ngx_pool_t *p, ngx_chain_t **free); | 156 ngx_chain_t *ngx_chain_get_free_buf(ngx_pool_t *p, ngx_chain_t **free); |
157 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, | 157 void ngx_chain_update_chains(ngx_pool_t *p, ngx_chain_t **free, |
158 ngx_chain_t **out, ngx_buf_tag_t tag); | 158 ngx_chain_t **busy, ngx_chain_t **out, ngx_buf_tag_t tag); |
159 | 159 |
160 | 160 |
161 #endif /* _NGX_BUF_H_INCLUDED_ */ | 161 #endif /* _NGX_BUF_H_INCLUDED_ */ |