Hi everybody,
as Yodaiken wrote on may 2000:
>
>pthread_suspend_np -- suspend the named thread _and_ call the scheduler
>
>So pthread_suspend_np(p) will suspend "p"
>thread and call the scheduler. If you do this in a interrupt
>handler it's possible that the interrupt handler will be suspended as
>well! This will certainly happen if p==pthread_self() and may happen
>if a higher priority thread is runnable.
How can I set ISR priority level so that the interrupt handler can
complete before thread p awakes ?
>the clean way to do thread wakeup
>and suspend is with pthread_kill which delivers the signal but does not
>resched. The problem here is that pthread_kill(p,RTL_SIG_SUSPEND) may
>not have immediate effect, but in most cases, what you want is for the
>task that is waiting to do a pthread_suspend_np(pthread_self())
>and for the interrupt routine to do pthread_kill(p,RTL_SIG_WAKEUP);
With RTLinux 2.0 it seems I can't call pthread_kill...is it right ?
Thankyou all for the help.
Stefano
-- [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/