mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix detection of blocking lock before viewport start.
This commit is contained in:
parent
e572c655c1
commit
182f6533f3
@ -1545,13 +1545,14 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
||||
if( (*vbegin)->lockCount > 0 )
|
||||
{
|
||||
auto it = vbegin;
|
||||
bool waiting = (*vbegin)->waitCount > 0;
|
||||
for(;;)
|
||||
{
|
||||
if( (*it)->type == LockEvent::Type::Obtain )
|
||||
{
|
||||
if( (*it)->thread == tid )
|
||||
{
|
||||
state = (*it)->waitCount > 0 ? State::HasBlockingLock : State::HasLock;
|
||||
state = waiting ? State::HasBlockingLock : State::HasLock;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user