[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thread Safe Iostreams Patch
From: |
Daniel E Baumann |
Subject: |
Thread Safe Iostreams Patch |
Date: |
Sun, 25 Aug 2002 01:02:51 -0500 |
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.
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
piostreams.diff
Description: Text document
- Thread Safe Iostreams Patch,
Daniel E Baumann <=