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

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 };

View File

@ -30,6 +30,8 @@ public:
static uint64_t ZoneBegin( QueueZoneBegin&& data );
static void ZoneEnd( uint64_t id, QueueZoneEnd&& data );
static bool ShouldExit();
private:
void Worker();