mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-24 12:11: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:
parent
31f1bf4426
commit
7ff81f6654
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user