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

Thread data accessor.

This commit is contained in:
Bartosz Taudul
2019-09-08 14:07:16 +02:00
parent 3a9ff94580
commit ea6a0a58a7
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -2420,6 +2420,13 @@ ThreadData* Worker::NoticeThreadReal( uint64_t thread )
}
}
const ThreadData* Worker::GetThreadData( uint64_t tid ) const
{
auto it = m_threadMap.find( tid );
if( it == m_threadMap.end() ) return nullptr;
return it->second;
}
ThreadData* Worker::NewThread( uint64_t thread )
{
CheckThreadString( thread );