Display lock source location in tooltip.

This commit is contained in:
Bartosz Taudul 2018-09-18 16:29:02 +02:00
parent cf459c6498
commit 44fae53583

View File

@ -2992,8 +2992,9 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
assert( false ); assert( false );
break; break;
} }
ImGui::Text( "Thread list:" ); ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line );
ImGui::Separator(); ImGui::Separator();
ImGui::TextDisabled( "Thread list:" );
ImGui::Indent( ty ); ImGui::Indent( ty );
for( const auto& t : v.second.threadList ) for( const auto& t : v.second.threadList )
{ {