This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: BUG in libstdc++ ... libio ... pthreads


Andreas Gruenbacher wrote:
> What's the benefit of having any file locking code in the library at the
> current state?

libio itself has support for threads, but the iostream code
on top of it does not.

> Is anybody working on thread safety currently?

I'm sure a lot of people would like the answer to a different
question: who would like to work on the thread-safe iostreams?
Everybody interested, announce and join in!

C++ iostreams has a better model for thread safety than stdio,
because there is a natural place to put locking, in the "sentry"
objects.

Nathan Myers
ncm@cantrip.org


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