This is the mail archive of the ecos-discuss@sourceware.org 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: Re: Possible deadlock in SPI driver for AT91 ARM target


On 3/4/08, Svend Meyland Nicolaisen <ecos@smn.dk> wrote:
>  > If a thread goes to sleep, the DSRs get unlocked again. When
>  > the thread becomes runnable and is rescheduled, DSRs are
>  > relocked. You could consider this to mean that the scheduler
>  > lock is a per-thread property.
>  >
>
>  Ahh, thank you for your answer. Might be a good point to add to the
>  documentation..... :-)

I was confused by this to begin with as well.  It is actually in the
documentation but it's a bit easy to overlook.  Look at the
description of cyg_drv_cond_wait() in the Driver API section of the
Reference Manual.

Rob.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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