Ralf Ramrath wrote:
>
> Hi folks,
>
> I have the following problem:
>
> I have a "main thread" that has to read data from the serial port only if
> any data is available. On the other hand, the thread must not wait longer
> than let's say one second.
Hi Ralf,
IMHO, the correct way to handle this would be to use
pthread_cond_timedwait. Unfortunately neither RTL or RTAI currently
implement this.
Regards, Stuart
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/