Tid to pid mapping may be already known.

This commit is contained in:
Bartosz Taudul 2020-01-14 02:06:36 +01:00
parent 4f8eb53e8b
commit 91f86ce5b5

View File

@ -4737,8 +4737,7 @@ void Worker::ProcessThreadWakeup( const QueueThreadWakeup& ev )
void Worker::ProcessTidToPid( const QueueTidToPid& ev ) void Worker::ProcessTidToPid( const QueueTidToPid& ev )
{ {
assert( m_data.tidToPid.find( ev.tid ) == m_data.tidToPid.end() ); if( m_data.tidToPid.find( ev.tid ) == m_data.tidToPid.end() ) m_data.tidToPid.emplace( ev.tid, ev.pid );
m_data.tidToPid.emplace( ev.tid, ev.pid );
} }
void Worker::ProcessParamSetup( const QueueParamSetup& ev ) void Worker::ProcessParamSetup( const QueueParamSetup& ev )