From 44753dd4aca51b77c6a1b96b8cad300891c99b76 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 Feb 2019 14:46:24 +0100 Subject: [PATCH] thread_local implies static. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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