33 xrt_reference_inc(&orc->base);
42 if (xrt_reference_dec_and_is_zero(&orc->base)) {
static void oxr_refcounted_unref(struct oxr_refcounted *orc)
Decrease the reference count of orc, destroying it if it reaches 0.
Definition oxr_refcounted.h:40
static void oxr_refcounted_ref(struct oxr_refcounted *orc)
Increase the reference count of orc.
Definition oxr_refcounted.h:31
Definition oxr_refcounted.h:21
void(* destroy)(struct oxr_refcounted *)
Destruction callback.
Definition oxr_refcounted.h:24
A base class for reference counted objects.
Definition xrt_defines.h:99
Common defines and enums for XRT.