mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add attention callback helper.
This commit is contained in:
@@ -864,4 +864,13 @@ const char* View::GetThreadContextData( uint64_t thread, bool& _local, bool& _un
|
||||
return label;
|
||||
}
|
||||
|
||||
void View::Attention( bool& alreadyDone )
|
||||
{
|
||||
if( !alreadyDone )
|
||||
{
|
||||
alreadyDone = true;
|
||||
m_acb();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user