Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kBool kObject_IsShared ( kObject  object)

Reports whether the object is currently shared (reference count greater than one).

Objects are initialized with a reference count of one. The kObject_Share method can be used to increment the reference count. The kObject_Destroy and kObject_Dispose methods decrease the reference count, and when the reference count reaches zero, the object is actually destroyed/disposed.

This method can be used to determine if the reference count of an object is currently greater than one.

This method is thread-safe.

Parameters
objectObject.
Returns
kTRUE if the object is shared.
See also
Reference Counting, kObject_Share, kObject_HasShared