Signal symbol resolution thread destruction.

This commit is contained in:
Bartosz Taudul 2021-10-23 01:46:00 +02:00
parent 02ce9b7d8b
commit fe9c63b8d2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1036,6 +1036,7 @@ static Thread* s_compressThread;
#endif
#ifdef TRACY_HAS_CALLSTACK
static Thread* s_symbolThread;
std::atomic<bool> s_symbolThreadGone { false };
#endif
#ifdef TRACY_HAS_SYSTEM_TRACING
static Thread* s_sysTraceThread = nullptr;
@ -1424,6 +1425,7 @@ Profiler::~Profiler()
#ifdef TRACY_HAS_CALLSTACK
s_symbolThread->~Thread();
tracy_free( s_symbolThread );
s_symbolThreadGone.store( true, std::memory_order_release );
#endif
#ifndef TRACY_NO_FRAME_IMAGE