From f013dfe706c0e27bdd0966e0c523278457c8952c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 25 Oct 2017 23:36:45 +0200 Subject: [PATCH] Properly label recursive lock wait sections. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 56570a8f..a363dee8 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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: {