This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Synchronization
- From: Jesper Skov <jskov at redhat dot com>
- To: Schmidt Henning Larsen <HenningLS at danfoss dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: 16 Nov 2001 13:50:31 +0100
- Subject: Re: [ECOS] Synchronization
- References: <829F632D2F25D411B6920008C716F831025B8114@dd01-e01.drives.danfoss.dk>
>>>>> "Schmidt" == Schmidt Henning Larsen <HenningLS@danfoss.com> writes:
>>
Schmidt> Can I call isig_sem( ID semid ) in an ISR or DSR ?
>> See http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.13.htm
>> l#pgfId=1080346
>> You can only call the signal function of a conditional variable
>> from the DSR. So I guess the answer is no.
>> Jesper
Schmidt> But how shall I understand:
Schmidt> http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.a.html#pgfId=1033803
Schmidt> can't I use these functions.
Only from threads. I believe the normal approach is to create a thread
that does whatever it is you want to do as part of the interrupt
handling, and then use condition variables to start it from the DSR.
I'm pretty sure it's been discussed before on this list. Look in the
archive.
Jesper