"is this a thread safe way to initialize a [threadstatic]?" Code Answer

4

if its threadstatic there's one copy per thread. so, by definition, its thread safe.

this blog has some good info on threadstatic.

By Wilson Freitas on March 6 2022

Answers related to “is this a thread safe way to initialize a [threadstatic]?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.