Re: [committed] libstdc++: Use __libc_single_threaded for locale initialization

2020-11-27 Thread Jonathan Wakely via Gcc-patches
On 27/11/20 11:15 +, Jonathan Wakely wrote: On 27/11/20 09:43 +0100, Stephan Bergmann via Libstdc++ wrote: On 24/11/2020 15:59, Jonathan Wakely via Gcc-patches wrote: Most initialization of locales and facets happens before main() during startup, when the program is likely to only have one

Re: [committed] libstdc++: Use __libc_single_threaded for locale initialization

2020-11-27 Thread Jonathan Wakely via Gcc-patches
On 27/11/20 09:43 +0100, Stephan Bergmann via Libstdc++ wrote: On 24/11/2020 15:59, Jonathan Wakely via Gcc-patches wrote: Most initialization of locales and facets happens before main() during startup, when the program is likely to only have one thread. By using the new __gnu_cxx::__is_single_t

Re: [committed] libstdc++: Use __libc_single_threaded for locale initialization

2020-11-27 Thread Stephan Bergmann via Gcc-patches
On 24/11/2020 15:59, Jonathan Wakely via Gcc-patches wrote: Most initialization of locales and facets happens before main() during startup, when the program is likely to only have one thread. By using the new __gnu_cxx::__is_single_threaded() function instead of checking __gthread_active_p() we c