On 7/13/07, Steve McKown <[EMAIL PROTECTED]> wrote:
Hi David,

I have one more patch suggestion for the C SDK, to build upon your recent
update to CVS.  With the latest code and using a blocking serial source, one
can get into a situation where the SDK has buffered one or more packets
internally but it still blocks to do IO on the tty when calling
read_serial_packet.  Here's the call graph:

read_serial_packet(src, &len);
read_and_process(src, src->non_blocking); /* nb is FALSE */
read_byte(src, non_blocking);
serial_read(src, non_blocking, buffer, len);
select(...);

Patch below.  Thanks!

Checked in, thanks!

David Gay
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to