diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-13 21:36:54 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-13 21:36:54 +0300 |
commit | 94fd3b664e5428c245b04c57baad0d427adda7c2 (patch) | |
tree | e8bc1e8bcf179e68f13d97e92e1601bf13bf56d7 /server | |
parent | 0a7ae94fcb7eba8687610ab06c0dce628ff25538 (diff) |
Add attention callback helper.
Diffstat (limited to 'server')
-rw-r--r-- | server/TracyView.hpp | 2 | ||||
-rw-r--r-- | server/TracyView_Utility.cpp | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp index c3c5312f..36b02118 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -349,6 +349,8 @@ private: void SetPlaybackFrame( uint32_t idx ); bool Save( const char* fn, FileWrite::Compression comp, int zlevel, bool buildDict ); + void Attention( bool& alreadyDone ); + unordered_flat_map<uint64_t, bool> m_visibleMsgThread; unordered_flat_map<uint64_t, bool> m_waitStackThread; unordered_flat_map<const void*, int> m_gpuDrift; diff --git a/server/TracyView_Utility.cpp b/server/TracyView_Utility.cpp index 8ef2f44a..1cb71a02 100644 --- a/server/TracyView_Utility.cpp +++ b/server/TracyView_Utility.cpp @@ -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(); + } +} + } |