mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Simplify code.
This commit is contained in:
parent
d1789f1e3a
commit
25e9ae4b68
@ -2308,16 +2308,11 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
||||
|
||||
while( vbegin < vend )
|
||||
{
|
||||
if( state == LockState::Nothing || ( m_onlyContendedLocks && state == LockState::HasLock ) )
|
||||
while( vbegin < vend && ( state == LockState::Nothing || ( m_onlyContendedLocks && state == LockState::HasLock ) ) )
|
||||
{
|
||||
do
|
||||
{
|
||||
vbegin = GetNextLockEvent( vbegin, vend, state, state, thread );
|
||||
}
|
||||
while( vbegin < vend && ( state == LockState::Nothing || ( m_onlyContendedLocks && state == LockState::HasLock ) ) );
|
||||
if( vbegin >= vend ) break;
|
||||
state = state;
|
||||
vbegin = GetNextLockEvent( vbegin, vend, state, state, thread );
|
||||
}
|
||||
if( vbegin >= vend ) break;
|
||||
|
||||
LockState nextState;
|
||||
auto next = GetNextLockEvent( vbegin, vend, state, nextState, thread );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user