* [ECOS] regarding DSR
@ 2003-10-21 11:31 Mahesh
2003-10-21 11:43 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: Mahesh @ 2003-10-21 11:31 UTC (permalink / raw)
To: radhakrishnan R; +Cc: ecos
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.
Thanks and Regards
Mahesh
--
Mahesh M Patil
Software Engineer
Cranes Software International Limited
VasanthNagar
Bangalore
Mobile:9845579634
Office:2381740/1/2 Extn:234
www.cranessoftware.com
_______________________________________________
This email with any attachments is for the exclusive use of the intended
recipient/s & may contain confidential & legally privileged information.
If you are not the intended recipient pls notify the sender immediately
& delete the email from your system. Any unauthorised use, disclosure,
printing, dissemination, forwarding or copying of this mail is strictly
prohibited and unlawful.
Visit us at : http://www.cranessoftware.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] regarding DSR
2003-10-21 11:31 [ECOS] regarding DSR Mahesh
@ 2003-10-21 11:43 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2003-10-21 11:43 UTC (permalink / raw)
To: Mahesh; +Cc: radhakrishnan R, ecos
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-21 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-21 11:31 [ECOS] regarding DSR Mahesh
2003-10-21 11:43 ` Andrew Lunn
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).