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