1
0
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:
Bartosz Taudul 2017-10-25 23:36:45 +02:00
parent 01b2e64985
commit f013dfe706

View File

@ -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 );
}
if( (*vbegin)->waitList != 0 )
{
assert( ( (*next)->waitList & ~( uint64_t( 1 ) << thread ) ) == 0 );
ImGui::Text( "Recursive lock acquire in thread." );
}
break;
case State::HasBlockingLock:
{