mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Check thread name when adding messages.
This commit is contained in:
parent
807d3c42be
commit
fa985940f7
@ -884,6 +884,7 @@ void View::InsertMessageData( MessageData* msg, uint64_t thread )
|
|||||||
auto tit = m_threadMap.find( thread );
|
auto tit = m_threadMap.find( thread );
|
||||||
if( tit == m_threadMap.end() )
|
if( tit == m_threadMap.end() )
|
||||||
{
|
{
|
||||||
|
CheckThreadString( thread );
|
||||||
m_threadMap.emplace( thread, (uint32_t)m_threads.size() );
|
m_threadMap.emplace( thread, (uint32_t)m_threads.size() );
|
||||||
auto td = m_slab.AllocInit<ThreadData>();
|
auto td = m_slab.AllocInit<ThreadData>();
|
||||||
td->id = thread;
|
td->id = thread;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user