From fe9c63b8d29fa5435e69f1211577b914ca4b9870 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Oct 2021 01:46:00 +0200 Subject: [PATCH] Signal symbol resolution thread destruction. --- client/TracyProfiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 0bb8972f..41110d0a 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1036,6 +1036,7 @@ static Thread* s_compressThread; #endif #ifdef TRACY_HAS_CALLSTACK static Thread* s_symbolThread; +std::atomic 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