mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
thread_local implies static.
This commit is contained in:
parent
3a562ae6c9
commit
44753dd4ac
@ -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<QueueItem> 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
|
||||
|
Loading…
Reference in New Issue
Block a user