From: Andrew Lunn <andrew@lunn.ch>
To: Mahesh <mahesh@cranessoftware.com>
Cc: radhakrishnan R <radhaamanji@yahoo.co.uk>,
ecos <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] regarding DSR
Date: Tue, 21 Oct 2003 11:43:00 -0000 [thread overview]
Message-ID: <20031021114324.GA19761@lunn.ch> (raw)
In-Reply-To: <1066730368.5820.11.camel@MAHESH>
On Tue, Oct 21, 2003 at 03:29:28PM +0530, Mahesh wrote:
> Hi,
> I am using Real time clock for alarms.
> My configuration is Arm pid and sid (simulator only)
> The alarm is being initialized in one thread and at the time the
> alarm triggers, i am in one more thread.The alarm is periodic.
> How i can go to the thread which initialized that alarm.Or can i put
> the part of code in DSR without going to that thread.The part of code i
> am talking consists of initializing alarms and sending messages to
> mailboxes.Is it permissible in DSR's.
You cannot do anything that can block in a DSR. Initializing an alarm
is OK. You have to be careful with sending a message to a
mbox. cyg_mbox_put() can block when the mbox is full. So instead you
have to use cyg_mbox_tryput() and if it fails because the message box
is full you cannot wait and try again.
All this is documented. So please RTM.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
prev parent reply other threads:[~2003-10-21 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-21 11:31 Mahesh
2003-10-21 11:43 ` Andrew Lunn [this message]
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=20031021114324.GA19761@lunn.ch \
--to=andrew@lunn.ch \
--cc=ecos-discuss@sources.redhat.com \
--cc=mahesh@cranessoftware.com \
--cc=radhaamanji@yahoo.co.uk \
/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).