mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Explicit zone index.
This commit is contained in:
parent
e8989d955c
commit
e3edd7e336
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user