I'm not clear on what exactly you are doing:
        1. If you want to put a realtime RTLinux thread to sleep
        there are many methods. The correct POSIX method is

        clock_nanosleep  -- for a timed wait
        pthread_cond_wait
        or
        pthread_cond_timedwait

        although pthread_suspend_np works fine.





On Sat, May 05, 2001 at 08:02:51PM -0100, Anders Gnistrup wrote:
> karl rentsch wrote:
> 
> > Hi all,
> >
> > I've got a problem I hope someone can help me with.  I'm trying to put a
> > thread to sleep but I don't want to tie up the system using usleep() or
> > nanosleep().  I've tried using pthread_make_periodic_np configured as a
> > one shot timer (ie. it needs to repeat several times but for different
> > time intervals) but it doesn't seem to work
> > Any help would be much appreciated
> > Thanks
> > Karl Rentsch
> 
> I am working on the same problem. What I have found is that the funktion
> sigaction
> can be used for that purpuse. Right now I do not know how. Is you find a
> solution I realy
> whold like to about it
> 
> Anders Gnistrup
> 
> 
> >
> >
> > -- [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/
> 
> 
> -- [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/
-- [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/

Reply via email to