mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
First check if valid, then search in map.
This commit is contained in:
parent
fe6c753f12
commit
720e5a0468
@ -1702,7 +1702,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
|||||||
for( const auto& v : m_worker.GetLockMap() )
|
for( const auto& v : m_worker.GetLockMap() )
|
||||||
{
|
{
|
||||||
const auto& lockmap = v.second;
|
const auto& lockmap = v.second;
|
||||||
if( !Visible( &lockmap ) || !lockmap.valid ) continue;
|
if( !lockmap.valid || !Visible( &lockmap ) ) continue;
|
||||||
|
|
||||||
auto it = lockmap.threadMap.find( tid );
|
auto it = lockmap.threadMap.find( tid );
|
||||||
if( it == lockmap.threadMap.end() ) continue;
|
if( it == lockmap.threadMap.end() ) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user