This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: I2C driver DSR locking
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "eCos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 4 Apr 2007 09:59:18 -0700
- Subject: RE: [ECOS] 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