"are function static variables thread-safe in gcc?" Code Answer

4
  1. no, it means that the initialization of local statics is thread-safe.

  2. you definitely want to leave this feature enabled. thread-safe initialization of local statics is very important. if you need generally thread-safe access to local statics then you will need to add the appropriate guards yourself.

By Eric Shea on January 3 2022

Answers related to “are function static variables thread-safe in gcc?”

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