Monado OpenXR Runtime
Loading...
Searching...
No Matches
os_rwlock Struct Reference

A wrapper around a native read-write lock. More...

#include <os/os_threading.h>

Collaboration diagram for os_rwlock:

Static Public Member Functions

static int os_rwlock_init (struct os_rwlock *orwl)
 Init.
 
static void os_rwlock_read_lock (struct os_rwlock *orwl)
 Lock for reading, any number of readers can hold it at the same time.
 
static void os_rwlock_write_lock (struct os_rwlock *orwl)
 Lock for writing, waits for all readers and writers to unlock.
 
static void os_rwlock_unlock (struct os_rwlock *orwl)
 Unlock, from either a read or a write lock.
 
static void os_rwlock_destroy (struct os_rwlock *orwl)
 Clean up.
 

Data Fields

pthread_rwlock_t rwlock
 
bool initialized
 

Detailed Description

A wrapper around a native read-write lock.


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