[En-Nut-Discussion] Is function _read blocking?

Harald Kipp harald.kipp at egnite.de
Tue Mar 28 09:15:14 CEST 2006


Alexander,

At 17:29 27.03.2006 -0500, you wrote:
>Am I right that _read function is blocking?

Yes, it blocks until at least one character is available. You
can avoid this with

     /* Set UART read timeout to 1 ms. */
     u_long to = 1;
     _ioctl(fd, UART_SETREADTIMEOUT, &to);

Harald




More information about the En-Nut-Discussion mailing list