Store main thread id.

This commit is contained in:
Bartosz Taudul 2017-09-23 01:37:07 +02:00
parent a41db80ff2
commit 2faa1abb21
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ static Profiler* s_instance = nullptr;
Profiler::Profiler()
: m_timeBegin( GetTime() )
, m_mainThread( GetThreadHandle() )
, m_shutdown( false )
, m_id( 0 )
, m_stream( LZ4_createStream() )

View File

@ -42,6 +42,7 @@ private:
bool HandleServerQuery();
int64_t m_timeBegin;
uint64_t m_mainThread;
std::thread m_thread;
std::atomic<bool> m_shutdown;
std::atomic<uint64_t> m_id;