mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
s_instance ptr may be accessed by thread.
This commit is contained in:
@@ -37,11 +37,12 @@ Profiler::Profiler()
|
||||
|
||||
Profiler::~Profiler()
|
||||
{
|
||||
m_shutdown.store( true, std::memory_order_relaxed );
|
||||
m_thread.join();
|
||||
|
||||
assert( s_instance );
|
||||
s_instance = nullptr;
|
||||
|
||||
m_shutdown.store( true, std::memory_order_relaxed );
|
||||
m_thread.join();
|
||||
}
|
||||
|
||||
uint64_t Profiler::GetNewId()
|
||||
|
||||
Reference in New Issue
Block a user