2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-24 04:01:33 +00:00

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

the most generally useful way.
This commit is contained in:
Michael Brown 2007-05-01 00:04:21 +00:00
parent 31f1bf4426
commit 7ff81f6654

View File

@ -12,6 +12,11 @@
*
* This data structure is designed to be embedded within a
* 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 {
/** Current reference count