guile-user
[Top][All Lists]
Advanced

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

Re: uniform-array-read!


From: Marius Vollmer
Subject: Re: uniform-array-read!
Date: Sat, 04 Feb 2006 15:31:17 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Alan Bram <address@hidden> writes:

> Gee, that's strange.  When I try it, even with a larger size, it
> still works fine for me.

The problem is likely that uniform-array-read! will try to fill the
whole array, if necessary by doing more than one call to read(2).  The
first call will not block after select or poll has given the green
light for reading, but the second call might block (or not).

(In 1.8, uniform-vector-read! will make the guarantee to only call
read(2) once when you read from a file descriptor (and not a port)).

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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