This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Quick question about cyg_cond_signal
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Srdjan Sobajic <srdjans at digitalpersona dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 02 Nov 2002 14:48:50 +0000
- Subject: Re: [ECOS] Quick question about cyg_cond_signal
- References: <AF2AADDC86B9D311AB2C00508B122299010FB6A2@RWC-MAIL>
Srdjan Sobajic <srdjans@digitalpersona.com> writes:
> Hi,
>
> Just a really quick question. Is it safe to call cyg_cond_signal from an
> ISR/DSR? I am doing a cyg_cond_wait in my main loop just waiting for an
> interrupt. I can't find anything that explicitly says that it's OK, but from
> other comments on the list (from last year), it seems that this is OK.
> If anyone can confirm this that would be great.
>
It is allowed only from a DSR. You have of course read the
documentation on the Device Driver API haven't you? It is all
explained there, in particular there is a table that shows which
cyg_drv_* calls are allowed in which context.
--
Nick Garnett - eCos Kernel Architect
http://www.eCosCentric.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss