mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Properly label recursive lock wait sections.
This commit is contained in:
parent
01b2e64985
commit
f013dfe706
@ -2395,6 +2395,11 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
|||||||
{
|
{
|
||||||
ImGui::Text( "Thread \"%s\" has %i locks. No other threads are waiting.", GetThreadString( tid ), (*vbegin)->lockCount );
|
ImGui::Text( "Thread \"%s\" has %i locks. No other threads are waiting.", GetThreadString( tid ), (*vbegin)->lockCount );
|
||||||
}
|
}
|
||||||
|
if( (*vbegin)->waitList != 0 )
|
||||||
|
{
|
||||||
|
assert( ( (*next)->waitList & ~( uint64_t( 1 ) << thread ) ) == 0 );
|
||||||
|
ImGui::Text( "Recursive lock acquire in thread." );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case State::HasBlockingLock:
|
case State::HasBlockingLock:
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user