bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread Safe Iostreams Patch


From: Federico Montesino Pouzols
Subject: Re: Thread Safe Iostreams Patch
Date: Sun, 25 Aug 2002 20:16:41 +0200
User-agent: Mutt/1.4i

> Hello all. I have been hacking away at thread-safe iostreams and am
> including a patch containing that work. At first I attempted to do
> recursive locking but ran into some nice deadlock problems :(. So I
> opted to lock the stream and buffer on operator<< calls and release at
> the end of these calls. This does not give as nice output as I would
> like and threads can get preempted between operator<< calls. Also,
> there's a bunch of stuff that needs finishing. So baically this is just
> a preliminary thing for you to look at, comment on, etc. If
> anyone has a nice strategy on how to d recursive locking I am all
> ears, else I will just have to give it more thought and figure
> something out for myself.

        This looks very interesting, and it even comes with a test app
:). I guess that now that we have a "stable" branch (RELEASE1) in CVS,
this patch could be quickly added to HEAD so that people can start to
play with it

> 
> Enjoy. :)
> Dan
> -- 
> And if cynics ridicule freedom, ridicule community...if ``hard nosed 
> realists'' say that profit is the only ideal...just ignore them, and use
>  copyleft all the same.
>       -- RMS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]