[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Sat Mar 10 20:46:00 GMT 2007
------- Comment #3 from pcarlini at suse dot de 2007-03-10 20:46 -------
Humm, I'm afraid this is basically a WONTFIX or at least WONTFIX-ANY-TIME-SOON,
because we talking about targets using the GENERIC locale model, where, at
variance with the GNU locale model, on which we are focused of course, no
guarantees are provided about locales vs thread-safety: if you look at those
template functions, before the "detail" of errno you will notice that the
setlocale function is called everywhere and that is definitely not thread-safe,
accessing a global locale setting...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31117
More information about the Gcc-bugs
mailing list