Monado OpenXR Runtime
os_mutex Struct Reference

A wrapper around a native mutex. More...

#include <os/os_threading.h>

Collaboration diagram for os_mutex:

Static Public Member Functions

static int os_mutex_init (struct os_mutex *om)
 Init. More...
 
static void os_mutex_lock (struct os_mutex *om)
 Lock. More...
 
static int os_mutex_trylock (struct os_mutex *om)
 Try to lock, but do not block. More...
 
static void os_mutex_unlock (struct os_mutex *om)
 Unlock. More...
 
static void os_mutex_destroy (struct os_mutex *om)
 Clean up. More...
 
static int os_mutex_recursive_init (struct os_mutex *om)
 Init. More...
 
static void os_mutex_recursive_destroy (struct os_mutex *om)
 Clean up. More...
 

Data Fields

pthread_mutex_t mutex
 
bool initialized
 
bool recursive
 

Detailed Description

A wrapper around a native mutex.


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