[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make FileChannelImpl.read(byte[]) less blocking
From: |
Tom Tromey |
Subject: |
Re: Make FileChannelImpl.read(byte[]) less blocking |
Date: |
28 Apr 2004 23:29:50 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Mark" == Mark Wielaard <address@hidden> writes:
Mark> 2004-04-25 Stephen Crawley <address@hidden>
Mark> Mark Wielaard <address@hidden>
Mark> * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
Mark> (Java_gnu_java_nio_channels_FileChannelImpl_read___3BII):
Mark> Fill buffer with a do-while bytes_read < 1 loop.
Mark> Check for length == 0.
Mark> Comments? Objections?
I didn't see a reply to this. IMO this looks correct. I/O code like
this always has to take into consideration the possibility of short
reads.
Tom