mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Only enable tracy-internal GetThreadHandle if tracy is enabled.
This commit is contained in:
parent
79bfac9ca9
commit
46b75c5a19
@ -23,6 +23,7 @@ extern "C" __declspec(dllimport) unsigned long __stdcall GetCurrentThreadId(void
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
#ifdef TRACY_ENABLE
|
||||
static inline uint64_t GetThreadHandle()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
@ -38,6 +39,8 @@ static inline uint64_t GetThreadHandle()
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void SetThreadName( std::thread& thread, const char* name );
|
||||
void SetThreadName( std::thread::native_handle_type handle, const char* name );
|
||||
const char* GetThreadName( uint64_t id );
|
||||
|
Loading…
Reference in New Issue
Block a user