This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/12855] Thread safety problems in ios_base::Init


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]