瀏覽代碼

Elaborate on buf_shrink comment.

svn:r4169
Nick Mathewson 20 年之前
父節點
當前提交
14bac4dad4
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/or/buffers.c

+ 5 - 4
src/or/buffers.c

@@ -244,10 +244,11 @@ static INLINE void buf_shrink_if_underfull(buf_t *buf) {
 #define buf_shrink_if_underfull(buf) do {} while (0)
 #endif
 
-/** Resize buf so it won't hold extra memory that we haven't
- * been using lately. Try to shrink the buf until it is the
- * largest factor of two that can contain highwater, but never
- * smaller than MIN_LAZY_SHRINK_SIZE.
+/** Resize buf so it won't hold extra memory that we haven't been
+ * using lately (that is, since the last time we called buf_shrink).
+ * Try to shrink the buf until it is the largest factor of two that
+ * can contain <b>buf</b>-&gt;highwater, but never smaller than
+ * MIN_LAZY_SHRINK_SIZE.
  */
 void
 buf_shrink(buf_t *buf)