浏览代码

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
  *
12
  *
13
  * This data structure is designed to be embedded within a
13
  * This data structure is designed to be embedded within a
14
  * reference-counted object.
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
 struct refcnt {
21
 struct refcnt {
17
 	/** Current reference count
22
 	/** Current reference count

正在加载...
取消
保存