[Bug libstdc++/40088] Creating a std::ostringstream object locks a global mutex
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun May 10 11:53:00 GMT 2009
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-10 11:52 -------
Hm. I wonder how the "global" locale is supposed to interact with multiple
threads anyway (in the face of C++ not knowing about threads). Would it be
a conforming implementation to put the global locale into thread-local storage
(thus, having a "global" locale for each thread)?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40088
More information about the Gcc-bugs
mailing list