On Wed, Jun 21, 2000 at 11:53:27AM +0100, Stuart Hughes wrote:
> Arnaud Westenberg wrote:
> The real question is if I have an ISR whos only task is to wake up a
> thead, what happens:

You have a choice.

> 
> a) enter ISR, wakeup thread, thread code runs, return to ISR, exit ISR
> 

pthread_wakeup_np(thread)
        if "thread" is higher priority than the current thread, whatever
        it may be, then we switch and run the thread, and return to this
        thread later and then exit the ISR.

> or:
> 
> b) enter ISR, wakeup thread, exit ISR, thead code runs.

pthread_kill(thread,RTL_SIG_WAKEUP)
or
pthread_mutex_unlock(m);
         executes pthread_kill on all waiting threads.


> I'm saying that b) is more conventional, and I would like to have this
> facility available.

You are a lucky man.


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