Send main thread name.

This commit is contained in:
Bartosz Taudul 2017-09-23 01:38:26 +02:00
parent 2faa1abb21
commit 031818dff6

View File

@ -231,7 +231,14 @@ bool Profiler::HandleServerQuery()
SendString( ptr, (const char*)ptr, QueueType::StringData );
break;
case ServerQueryThreadString:
SendString( ptr, GetThreadName( ptr ), QueueType::ThreadName );
if( ptr == m_mainThread )
{
SendString( ptr, "Main thread", QueueType::ThreadName );
}
else
{
SendString( ptr, GetThreadName( ptr ), QueueType::ThreadName );
}
break;
default:
assert( false );