1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Mirror TracyView::ShouldExit in TracyProfiler.

This commit is contained in:
Bartosz Taudul
2017-09-14 19:23:50 +02:00
parent 2442c8fe58
commit f3ce055568
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -73,6 +73,11 @@ Profiler* Profiler::Instance()
return s_instance;
}
bool Profiler::ShouldExit()
{
return s_instance->m_shutdown.load( std::memory_order_relaxed );
}
void Profiler::Worker()
{
enum { BulkSize = TargetFrameSize / QueueItemSize };