瀏覽代碼

Document the fact that a zeroed-out refcounted object will behave in

the most generally useful way.
tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
7ff81f6654
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/include/gpxe/refcnt.h

+ 5
- 0
src/include/gpxe/refcnt.h 查看文件

@@ -12,6 +12,11 @@
12 12
  *
13 13
  * This data structure is designed to be embedded within a
14 14
  * reference-counted object.
15
+ *
16
+ * Reference-counted objects are freed when their reference count
17
+ * drops below zero.  This means that a freshly allocated-and-zeroed
18
+ * reference-counted object will be freed on the first call to
19
+ * ref_put().
15 20
  */
16 21
 struct refcnt {
17 22
 	/** Current reference count

Loading…
取消
儲存