Clang ++ fait-il l'initialisation de threadsafe des variables statiques locales?

StackOverflow https://stackoverflow.com/questions/7422081

  •  30-10-2019
  •  | 
  •  

Question

Clang ++ fait-il l'initialisation de threadsafe des variables statiques locales?

GCC le fait, à moins que vous ne le désactivez avec le nom de tort -fno-threadsafe-statics. J'utilise Apple Clang version 2.0 (Tags / Apple / Clang-139) (basé sur LLVM 2.9SVN).

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top