|
Monado OpenXR Runtime
|
A wrapper around a native read-write lock. More...
#include <os/os_threading.h>

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 |
A wrapper around a native read-write lock.