Monado OpenXR Runtime
|
A wrapper around a native semaphore. More...
#include <os/os_threading.h>
Static Public Member Functions | |
static int | os_semaphore_init (struct os_semaphore *os, int count) |
Init. More... | |
static void | os_semaphore_release (struct os_semaphore *os) |
Release. More... | |
static int | os_semaphore_get_realtime_clock (struct timespec *ts, uint64_t timeout_ns) |
Set ts to the current time, plus the timeout_ns value. More... | |
static void | os_semaphore_wait (struct os_semaphore *os, uint64_t timeout_ns) |
Wait, if timeout_ns is zero then waits forever. More... | |
static void | os_semaphore_destroy (struct os_semaphore *os) |
Clean up. More... | |
Data Fields | |
sem_t | sem |
A wrapper around a native semaphore.