On Thu, Nov 16, 2000 at 09:35:41PM +0000, Stuart Hughes wrote:
> 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.
pthread_cond_timedwait is in RTL3.
>
> 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/
--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com
-- [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/