From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30340 invoked by alias); 21 Oct 2003 11:43:31 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 30330 invoked from network); 21 Oct 2003 11:43:30 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 21 Oct 2003 11:43:30 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1ABuv6-00058w-00; Tue, 21 Oct 2003 13:43:24 +0200 Date: Tue, 21 Oct 2003 11:43:00 -0000 To: Mahesh Cc: radhakrishnan R , ecos Message-ID: <20031021114324.GA19761@lunn.ch> Mail-Followup-To: Mahesh , radhakrishnan R , ecos References: <1066730368.5820.11.camel@MAHESH> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1066730368.5820.11.camel@MAHESH> User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] regarding DSR X-SW-Source: 2003-10/txt/msg00354.txt.bz2 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