Quellcode durchsuchen

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

the most generally useful way.
tags/v0.9.3
Michael Brown vor 18 Jahren
Ursprung
Commit
7ff81f6654
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5
    0
      src/include/gpxe/refcnt.h

+ 5
- 0
src/include/gpxe/refcnt.h Datei anzeigen

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

Laden…
Abbrechen
Speichern