diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 5b63b852..2b8d1737 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -724,10 +724,10 @@ static Thread* s_thread = nullptr; // 1a. But s_queue is needed for initialization of variables in point 2. extern moodycamel::ConcurrentQueue s_queue; -static thread_local RPMallocThreadInit init_order(106) s_rpmalloc_thread_init; +thread_local RPMallocThreadInit init_order(106) s_rpmalloc_thread_init; // 2. If these variables would be in the .CRT$XCB section, they would be initialized only in main thread. -static thread_local moodycamel::ProducerToken init_order(107) s_token_detail( s_queue ); +thread_local moodycamel::ProducerToken init_order(107) s_token_detail( s_queue ); thread_local ProducerWrapper init_order(108) s_token { s_queue.get_explicit_producer( s_token_detail ) }; #ifdef _MSC_VER