Monado OpenXR Runtime
os_precise_sleeper Struct Reference
Collaboration diagram for os_precise_sleeper:

Public Member Functions

static void os_precise_sleeper_init (struct os_precise_sleeper *ops)
 Initialize members of os_precise_sleeper. More...
 
static void os_precise_sleeper_deinit (struct os_precise_sleeper *ops)
 De-initialize members of os_precise_sleeper, and free resources, without actually freeing the given pointer. More...
 
static void os_precise_sleeper_nanosleep (struct os_precise_sleeper *ops, int32_t nsec)
 Sleep the given number of nanoseconds, trying harder to be precise. More...
 

Data Fields

int unused_
 

Member Function Documentation

◆ os_precise_sleeper_deinit()

static void os_precise_sleeper_deinit ( struct os_precise_sleeper ops)
inline

De-initialize members of os_precise_sleeper, and free resources, without actually freeing the given pointer.

◆ os_precise_sleeper_init()

static void os_precise_sleeper_init ( struct os_precise_sleeper ops)
inline

Initialize members of os_precise_sleeper.

◆ os_precise_sleeper_nanosleep()

static void os_precise_sleeper_nanosleep ( struct os_precise_sleeper ops,
int32_t  nsec 
)
inline

Sleep the given number of nanoseconds, trying harder to be precise.

On some platforms, there is no way to improve sleep precision easily with some OS-specific state, so we forward to os_nanosleep().

Note that on all platforms, the system scheduler has the final say.

References os_nanosleep().

Referenced by u_wait_until().


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