mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +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
|
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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user