> 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(). 


This is not a good idea. with the sleep-functions your thread is still
active.
Try to use the   suspend()-  and   wakeup()-functions.
See the manuals of rtlinux. you can create a thread a thread.
make him periodic.
suspend and wakeup the thread 
and at the end you delete him.


> 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
> 
> -- [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/
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-- [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