[Bug libstdc++/12658] Thread safety problems in locale::global() and locale::locale()
bkoz at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Dec 13 18:44:00 GMT 2003
------- Additional Comments From bkoz at gcc dot gnu dot org 2003-12-13 18:44 -------
Paolo, my bad. I'm sorry.
You are correct. I think just splitting locale::locale() up into:
+ _S_initialize();
+ _S_global->_M_add_reference();
+ _M_impl = _S_global;
Will be sufficient, without the heavyweight locks, which is good. Loren, isn't
this correct? This would solve your comment as well.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12658
More information about the Gcc-bugs
mailing list