Boost logo

Boost :

From: Alexander Nasonov (alnsn-mycop_at_[hidden])
Date: 2003-08-11 10:05:34


Larry Evans wrote:

> [snip]
> indicating some interest in combining thread safety and
> decoration. It seems to me (a novice in threading) that
> what needs to be protected is the access to the end
> of the pipeline, i.e. the final streambuf, which is
> connected to the actual output medium (a file, or console or
> pipe).

Mine isn't connected to the actual medium. It works for yourself (and for
pipe streams).

> Hence, I'm wondering if it's a good idea to
> combine the two in a ostream class. I confess I haven't
> looked at your code, but I think it would be nice if
> somehow it could be streambuf thread safety could be separated
> from the {o,i}stream features which are only concerned with
> formatting. Does that make sense?

Only pipestream is thread safe. Iostreams are not.

-- 
Alexander Nasonov
Remove minus and all between minus and at from my e-mail for timely response

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk