mirror of https://github.com/ipxe/ipxe.git
Document the fact that a zeroed-out refcounted object will behave in
the most generally useful way.pull/1/head
parent
31f1bf4426
commit
7ff81f6654
|
@ -12,6 +12,11 @@
|
||||||
*
|
*
|
||||||
* This data structure is designed to be embedded within a
|
* This data structure is designed to be embedded within a
|
||||||
* reference-counted object.
|
* reference-counted object.
|
||||||
|
*
|
||||||
|
* Reference-counted objects are freed when their reference count
|
||||||
|
* drops below zero. This means that a freshly allocated-and-zeroed
|
||||||
|
* reference-counted object will be freed on the first call to
|
||||||
|
* ref_put().
|
||||||
*/
|
*/
|
||||||
struct refcnt {
|
struct refcnt {
|
||||||
/** Current reference count
|
/** Current reference count
|
||||||
|
|
Loading…
Reference in New Issue