RTAI/RTL gurus
Let me clarify or make more specific what I am trying to do. A suspend
or resume may not be the way to go and I would appreciate suggestions.
I have setup an ISR that accepts hardware interrupts from another
device via the parallel port. The ISR simply increments a counter. I would
like to produce a pause in the task when the counter reaches a certain value
and restart the task at another counter value. This
should be done without a busy wait checking the value of the counter.
Any clarifications on using suspend/resume routines to control the task
within an ISR. Any other suggestions? Semaphores were
suggested. Does anyone have a code snippet for a semaphore approach?
Thanks everyone,
Daniel
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: [rtl] RT interrupt service routine question
>Date: Tue, 09 May 2000 16:31:47 +0200 (MET DST)
>
>
> > > pthread_wakeup_np() is safe. The others are unknown (yet).
> >
> > pthread_suspend_np is safe, but may suspend the interrupt handler.
>
>Folks,
>
>"Safe" just means: it won't crash your machine (immediately).
>It not equal to "useful" or "wise". ;-)
>
>
>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/
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
-- [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/