Monado OpenXR Runtime
os_semaphore Struct Reference

A wrapper around a native semaphore. More...

#include <os/os_threading.h>

Collaboration diagram for os_semaphore:

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
 

Detailed Description

A wrapper around a native semaphore.


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