mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Elaborate on buf_shrink comment.
svn:r4169
This commit is contained in:
parent
aa6bcd50ca
commit
14bac4dad4
@ -244,10 +244,11 @@ static INLINE void buf_shrink_if_underfull(buf_t *buf) {
|
|||||||
#define buf_shrink_if_underfull(buf) do {} while (0)
|
#define buf_shrink_if_underfull(buf) do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Resize buf so it won't hold extra memory that we haven't
|
/** Resize buf so it won't hold extra memory that we haven't been
|
||||||
* been using lately. Try to shrink the buf until it is the
|
* using lately (that is, since the last time we called buf_shrink).
|
||||||
* largest factor of two that can contain highwater, but never
|
* Try to shrink the buf until it is the largest factor of two that
|
||||||
* smaller than MIN_LAZY_SHRINK_SIZE.
|
* can contain <b>buf</b>->highwater, but never smaller than
|
||||||
|
* MIN_LAZY_SHRINK_SIZE.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
buf_shrink(buf_t *buf)
|
buf_shrink(buf_t *buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user