On Tue, May 09, 2000 at 01:21:48PM +0200, [EMAIL PROTECTED] wrote:
>
> > > Can one do a rt_task_suspend and rt_task_resume within a RT interrupt
> > > service routine?
>
> > pthread_wakeup_np() and pthread_suspend_np() are safe to use from
> > an IT handler. rt_task_suspend() detto.
> > See http://gatling.aszi.sztaki.hu/~kissg/doc_nmt/context.html
>
> Ooops! I missed a column.
> pthread_wakeup_np() is safe. The others are unknown (yet).
pthread_suspend_np is safe, but may suspend the interrupt handler.
There are maybe situations where this is useful. For example:
interrupt_handler:
do low level stuff
suspended_thread = pthread_self();
pthread_kill(highpriority_handler_thread,RTL_SIG_WAKEUP);
/* now switch to thread that does the work*/
pthread_suspend(pthread_self());/*handler will wakeup*/
return;
>
> Gabor
> -- [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
FSMLabs: www.fsmlabs.com www.rtlinux.com
FSMLabs is a servicemark and a service of
VJY Associates L.L.C, New Mexico.
-- [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/