From c4f0965851b6355bf8f86d23f476ff75a3199eea Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 24 Jun 2019 19:38:07 +0200 Subject: [PATCH] Don't use cached thread id to retrieve main thread id. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 57c065d5..00acbc7f 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -928,7 +928,7 @@ enum { BulkSize = TargetFrameSize / QueueItemSize }; Profiler::Profiler() : m_timeBegin( 0 ) - , m_mainThread( GetThreadHandle() ) + , m_mainThread( GetThreadHandleImpl() ) , m_epoch( std::chrono::duration_cast( std::chrono::system_clock::now().time_since_epoch() ).count() ) , m_shutdown( false ) , m_shutdownManual( false )