From a46731996dba19e2e1ff66878661c5f6f7d4c6ca Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 15 Nov 2019 22:44:44 +0100 Subject: [PATCH] Thread list size is known from iteration. --- server/TracyWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 93b199b4..0c552dc6 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -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 );