1
0
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:
Bartosz Taudul 2017-10-21 13:05:37 +02:00
parent 807d3c42be
commit fa985940f7

View File

@ -884,6 +884,7 @@ void View::InsertMessageData( MessageData* msg, uint64_t thread )
auto tit = m_threadMap.find( thread );
if( tit == m_threadMap.end() )
{
CheckThreadString( thread );
m_threadMap.emplace( thread, (uint32_t)m_threads.size() );
auto td = m_slab.AllocInit<ThreadData>();
td->id = thread;