This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12855] Thread safety problems in ios_base::Init
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2003 18:05:37 -0000
- Subject: [Bug libstdc++/12855] Thread safety problems in ios_base::Init
- References: <20031031094301.12855.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at gcc dot gnu dot org 2003-12-15 18:05 -------
Petur, your bits are taken care of, thanks.
Carlo, I think that the only valid definition of _S_initialized now is if
_S_refcount >= 1. We're not going to be able to narrow it down with further
granularity.
Because of this, I'm not quite sure if the member funtion _S_initialized makes
any sense at the moment. Why not just use an instance of ios_base::Init? If the
streams are initialized, then it does nothing. If they aren't inialized, the
instance of ios_base::Init will initialized them.
Plus, it's portable.
?
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855