ソースを参照

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

the most generally useful way.
tags/v0.9.3
Michael Brown 19年前
コミット
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

読み込み中…
キャンセル
保存