mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Mirror TracyView::ShouldExit in TracyProfiler.
This commit is contained in:
parent
2442c8fe58
commit
f3ce055568
@ -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 };
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user