Monado OpenXR Runtime
xrt_reference Struct Reference

A base class for reference counted objects. More...

#include <xrt/xrt_defines.h>

Collaboration diagram for xrt_reference:

Static Public Member Functions

static void xrt_reference_inc (struct xrt_reference *xref)
 Increment the reference, probably want xrt_reference_inc_and_was_zero. More...
 
static void xrt_reference_dec (struct xrt_reference *xref)
 Decrement the reference, probably want xrt_reference_dec_and_is_zero. More...
 
static XRT_CHECK_RESULT bool xrt_reference_inc_and_was_zero (struct xrt_reference *xref)
 Increment the reference and return true if the value was zero. More...
 
static XRT_CHECK_RESULT bool xrt_reference_dec_and_is_zero (struct xrt_reference *xref)
 Decrement the reference and return true if the value is now zero. More...
 

Data Fields

xrt_atomic_s32_t count
 

Detailed Description

A base class for reference counted objects.


The documentation for this struct was generated from the following file: