public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Paul D. DeRocco" <pderocco@ix.netcom.com>
To: "eCos Discuss" <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS] I2C driver DSR locking
Date: Wed, 04 Apr 2007 16:59:00 -0000	[thread overview]
Message-ID: <001501c776da$95f5cad0$8d7ba8c0@PAULD> (raw)
In-Reply-To: <m3fy7gb4jv.fsf@xl5.calivar.com>

> 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

  reply	other threads:[~2007-04-04 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-03 19:08 Rob Duncan
2007-04-03 21:28 ` Paul D. DeRocco
2007-04-03 21:39   ` Rob Duncan
2007-04-04  4:41   ` Daniel Helgason
2007-04-04 14:25     ` Nick Garnett
2007-04-04 16:59       ` Paul D. DeRocco [this message]
2007-04-10 10:31         ` Nick Garnett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001501c776da$95f5cad0$8d7ba8c0@PAULD' \
    --to=pderocco@ix.netcom.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).