1
0
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:
Bartosz Taudul
2017-09-13 23:36:40 +02:00
parent 037a4d7fac
commit 52d24d0d4c
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -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()