Are cin, cout, and other iostreams required to be thread-safe?
Cheers,
Owen
--
<Vosx> Hi, God. I don't want to sound like I don't appreciate you, but when I
asked you to make Shadowbane the talk of the industry, I kinda meant in a good
way.
<God> I answer prayer to crush.
As you observed, Standard C++ has no concept of threads or thread safety, so
the answer to this from a Standard C++ point of view is obviously "no".
However, your specific implementation probably does have some concept of
multi-threading, so the answer for your specific implementation may be
"yes" - consult your implementation's documentation to confirm this.
NeilB
http://groups.google.com/groups?selm=3D2348D9.4419C431%40web.de
(Subject: Re: Thread safety of cout)
http://groups.google.com/groups?selm=3DD6B913.4C8DA209%40web.de
("....The idea is that output to the stream for the complete
statement is done atomically....")
regards,
alexander.