This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Quick question about cyg_cond_signal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]