mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Remove threads that had group hint changed from thread order list.
This commit is contained in:
parent
bdacfe7c37
commit
dbf6274bff
@ -709,6 +709,17 @@ bool View::DrawImpl()
|
||||
m_acb();
|
||||
}
|
||||
|
||||
auto& threadHints = m_worker.GetPendingThreadHints();
|
||||
if( !threadHints.empty() )
|
||||
{
|
||||
for( auto v : threadHints )
|
||||
{
|
||||
auto it = std::find_if( m_threadOrder.begin(), m_threadOrder.end(), [v]( const auto& t ) { return t->id == v; } );
|
||||
if( it != m_threadOrder.end() ) m_threadOrder.erase( it ); // Will be added in the correct place later, like any newly appearing thread
|
||||
}
|
||||
m_worker.ClearPendingThreadHints();
|
||||
}
|
||||
|
||||
const auto& io = ImGui::GetIO();
|
||||
m_wasActive = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user