git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

scenefx/subprojects/packagefiles/tracy_v0_13_1_build_fix.patch (1.1K)

 1 diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp
 2 index 0691f78..20a3f02 100644
 3 --- a/public/client/TracyProfiler.cpp
 4 +++ b/public/client/TracyProfiler.cpp
 5 @@ -933,7 +933,7 @@ static Thread* s_symbolThread;
 6  std::atomic<bool> s_symbolThreadGone { false };
 7  #endif
 8  #ifdef TRACY_HAS_SYSTEM_TRACING
 9 -static std::atomic<Thread*> s_sysTraceThread = nullptr;
10 +static std::atomic<Thread*> s_sysTraceThread(nullptr);
11  #endif
12  
13  #if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER
14 @@ -2154,7 +2154,7 @@ void Profiler::Worker()
15      // takes care of calling StopSystemTracing(). However, a client may decide to
16      // manually RequestShutdown(), in which case ~Profile() may not execute before
17      // this Worker() thread goes through its teardown stages and reaches this point.
18 -    // To ensure that system tracing does not keep pushing data to the worker queue 
19 +    // To ensure that system tracing does not keep pushing data to the worker queue
20      // indefinitely (thus preventing this worker from terminating), we have to call
21      // StopSystemTracing() here as well to be safe:
22      StopSystemTracing();