Thread list size is known from iteration.

This commit is contained in:
Bartosz Taudul 2019-11-15 22:44:44 +01:00
parent db930f7f93
commit a46731996d

View File

@ -651,7 +651,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
{
uint64_t t;
f.Read( t );
lockmap.threadMap.emplace( t, lockmap.threadList.size() );
lockmap.threadMap.emplace( t, i );
lockmap.threadList.emplace_back( t );
}
f.Read( tsz );