Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_refcounted.h File Reference

Reference-counted base for OpenXR state tracker objects. More...

#include "xrt/xrt_defines.h"
Include dependency graph for oxr_refcounted.h:

Go to the source code of this file.

Data Structures

struct  oxr_refcounted
 

Functions

static void oxr_refcounted_ref (struct oxr_refcounted *orc)
 Increase the reference count of orc.
 
static void oxr_refcounted_unref (struct oxr_refcounted *orc)
 Decrease the reference count of orc, destroying it if it reaches 0.
 

Detailed Description

Reference-counted base for OpenXR state tracker objects.

Function Documentation

◆ oxr_refcounted_ref()

static void oxr_refcounted_ref ( struct oxr_refcounted orc)
inlinestatic

Increase the reference count of orc.

Referenced by oxr_action_attachment::oxr_action_attachment_init().

◆ oxr_refcounted_unref()

static void oxr_refcounted_unref ( struct oxr_refcounted orc)
inlinestatic

Decrease the reference count of orc, destroying it if it reaches 0.

References oxr_refcounted::destroy.

Referenced by oxr_action_attachment::oxr_action_attachment_teardown(), and oxr_action_set_attachment::oxr_action_set_attachment_teardown().