1
0
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:
Bartosz Taudul
2022-10-13 20:36:54 +02:00
parent 0a7ae94fcb
commit 94fd3b664e
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -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();
}
}
}