1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 20:53:52 +00:00

Explicit zone index.

This commit is contained in:
Bartosz Taudul 2017-09-14 21:04:35 +02:00
parent e8989d955c
commit e3edd7e336

View File

@ -185,9 +185,10 @@ void View::ProcessZoneEnd( uint64_t id, const QueueZoneEnd& ev )
} }
else else
{ {
const auto idx = it->second;
std::unique_lock<std::mutex> lock( m_lock ); std::unique_lock<std::mutex> lock( m_lock );
assert( ev.time >= m_data[it->second].start ); assert( ev.time >= m_data[idx].start );
m_data[it->second].end = ev.time; m_data[idx].end = ev.time;
lock.unlock(); lock.unlock();
m_openZones.erase( it ); m_openZones.erase( it );