[Ecls-list] Unbuffered FD stream for stdin/out/err with threads

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon Mar 15 08:08:03 UTC 2010


On Mon, Mar 15, 2010 at 5:52 AM, Matthew Mondor <mm_lists at pulsar-zone.net>wrote:

> Since my local tree keeps using the FILE streams in threaded mode and
> I've not exprienced any problems (using NetBSD-5), is this related to
> an OS-specific issue with stdio streams and threads?
>

Oh, no, the problem goes beyond that. FILE streams are locking and no two
threads can operate on the same FILE. Now suppose that thread A is reading
from stdin using a FILE. Thread B signals an error and enters the debugger.
It tries to read from stdin but it is locked. What to do?

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100315/7a279b64/attachment.html>


More information about the ecl-devel mailing list