The open source OpenXR runtime
at main 32 lines 508 B view raw
1#ifndef __TRACYSYSTEM_HPP__ 2#define __TRACYSYSTEM_HPP__ 3 4#include <stdint.h> 5 6#include "TracyApi.h" 7 8namespace tracy 9{ 10 11namespace detail 12{ 13TRACY_API uint32_t GetThreadHandleImpl(); 14} 15 16#ifdef TRACY_ENABLE 17TRACY_API uint32_t GetThreadHandle(); 18#else 19static inline uint32_t GetThreadHandle() 20{ 21 return detail::GetThreadHandleImpl(); 22} 23#endif 24 25TRACY_API void SetThreadName( const char* name ); 26TRACY_API const char* GetThreadName( uint32_t id ); 27 28TRACY_API const char* GetEnvVar(const char* name); 29 30} 31 32#endif