Subj : Re: Is std::cerr thread safe To : comp.programming.threads From : Maciej Sobczak Date : Wed Jul 20 2005 10:57 pm nin234@yahoo.com wrote: > To rephrase my orginal question. > Why doesn't std::cerr do the same? Because it wouldn't help you much anyway: stream << "John "; stream << "Smith"; stream << "5004 Long Street"; stream << "Nowhere"; The stream itself has not enough information to figure out the appropriate level of locking "granularity". It is the application or its established idioms that can do the job. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/ .