mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't show mutex as blocked, if there are no locks held.
This commit is contained in:
parent
171e962f97
commit
ea604d484d
@ -3066,8 +3066,15 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
||||
break;
|
||||
}
|
||||
case LockState::WaitLock:
|
||||
{
|
||||
if( (*vbegin)->lockCount > 0 )
|
||||
{
|
||||
ImGui::Text( "Thread \"%s\" is blocked by other thread:", GetThreadString( tid ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::Text( "Thread \"%s\" waits to obtain lock after release by thread:", GetThreadString( tid ) );
|
||||
}
|
||||
ImGui::Indent( ty );
|
||||
ImGui::Text( "\"%s\"", GetThreadString( lockmap.threadList[(*vbegin)->lockingThread] ) );
|
||||
ImGui::Unindent( ty );
|
||||
|
Loading…
Reference in New Issue
Block a user