From: Sergei Gavrikov <w3sg@SoftHome.net>
To: Andrew Lunn <andrew@lunn.ch>
Cc: ecos-discuss@sourceware.org, Alexey Shusharin <mrfinch@mail.ru>,
Uwe Kindler <uwe.kindler@cetoni.de>
Subject: Re: [ECOS] Re: Waiting I/O operation
Date: Sat, 21 Jul 2007 11:22:00 -0000 [thread overview]
Message-ID: <20070721112142.GA6591@ubuntu> (raw)
In-Reply-To: <20070720193516.GD28161@lunn.ch>
On Fri, Jul 20, 2007 at 09:35:16PM +0200, Andrew Lunn wrote:
> > But, one my today DSR uses the cyg_flag_setbits() notifier and that
> > works as I could expect. I found that is more simple, because that
> > doesn't need itself in a mutex. I wonder about the right hacking from
> > the eCos experts.
>
> You are not allowed to block in a DSR. So look through the
> cyg_flag_setbits() code and see if it calls any functions to block
> itself.
>
> Andrew
Andrew, I looked the implementation and I see this now. I'll review
my code.
Sincerely speaking, I did think that setbits implementation is something
simple thing like the flag maskbits operation :-) More that, grepped
through the eCos io/ and devs/ I did meet no cyg_flag operations at all,
but, there are enough the cyg_cond_*() synchronization calls there.
Thanks!
Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-07-21 11:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 8:47 cetoni GmbH - Uwe Kindler
2007-07-19 9:53 ` Alexey Shusharin
2007-07-19 10:39 ` cetoni GmbH - Uwe Kindler
2007-07-19 10:56 ` Alexey Shusharin
2007-07-19 10:41 ` Alexey Shusharin
2007-07-19 10:47 ` Sergei Gavrikov
2007-07-20 19:35 ` Andrew Lunn
2007-07-21 11:22 ` Sergei Gavrikov [this message]
2007-07-21 13:21 ` Uwe Kindler
2007-07-21 15:11 ` Sergei Gavrikov
2007-07-21 15:25 ` Sergei Gavrikov
2007-07-23 4:10 ` Alexey Shusharin
2007-07-23 5:53 ` Uwe Kindler
2007-07-23 9:12 ` Sergei Gavrikov
2007-07-23 10:15 ` Alexey Shusharin
2007-07-23 18:49 ` Sergei Gavrikov
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=20070721112142.GA6591@ubuntu \
--to=w3sg@softhome.net \
--cc=andrew@lunn.ch \
--cc=ecos-discuss@sourceware.org \
--cc=mrfinch@mail.ru \
--cc=uwe.kindler@cetoni.de \
/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).