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: I2C driver DSR locking


> From: Nick Garnett
> 
> It is a general feature of all thread suspension. Each 
> thread's scheduler lock level is essentially part of its 
> state and is saved and restored across all thread switches. 
> Historically this was not always the case, and cond_wait had 
> special code to support this kind of use. But it was 
> considered so useful that I made it a generic feature several 
> years ago.

So the implication of this is that when a thread holds the DSR lock, it
can't be pre-empted, but it can still yield or sleep of its own volition. Is
that correct?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com


--
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]