1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Don't use cached thread id to retrieve main thread id.

This commit is contained in:
Bartosz Taudul 2019-06-24 19:38:07 +02:00
parent a56c47a6a0
commit c4f0965851

View File

@ -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::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count() )
, m_shutdown( false )
, m_shutdownManual( false )