Monado OpenXR Runtime
u_limited_unique_id.cpp File Reference

A very simple generator to create process unique ids. More...

#include "u_limited_unique_id.h"
#include <atomic>
Include dependency graph for u_limited_unique_id.cpp:

Functions

xrt_limited_unique_id_t u_limited_unique_id_get (void)
 This function returns a unsigned 64 bit value that is guaranteed to be unique within the current running process, and not zero. More...
 

Variables

static std::atomic_uint_fast64_t generator
 

Detailed Description

A very simple generator to create process unique ids.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m