1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +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
{
const auto idx = it->second;
std::unique_lock<std::mutex> lock( m_lock );
assert( ev.time >= m_data[it->second].start );
m_data[it->second].end = ev.time;
assert( ev.time >= m_data[idx].start );
m_data[idx].end = ev.time;
lock.unlock();
m_openZones.erase( it );