1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Proper init order of thread local thread handle.

This commit is contained in:
Bartosz Taudul
2019-06-26 19:32:52 +02:00
parent 64980a1e6f
commit 8ce41b3543
3 changed files with 11 additions and 6 deletions
+1 -6
View File
@@ -42,12 +42,7 @@ static inline uint64_t GetThreadHandleImpl()
}
#ifdef TRACY_ENABLE
const thread_local auto s_threadHandle = detail::GetThreadHandleImpl();
static inline uint64_t GetThreadHandle()
{
return s_threadHandle;
}
TRACY_API uint64_t GetThreadHandle();
#else
static inline uint64_t GetThreadHandle()
{