comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: protected type interrupts
Date: Fri, 25 Aug 2006 08:38:49 +0200
Date: 2006-08-25T08:38:49+02:00	[thread overview]
Message-ID: <ut5mce.qq1.ln@hunter.axlog.fr> (raw)
In-Reply-To: <1156436616.384632.192250@h48g2000cwc.googlegroups.com>

REH a �crit :
> Jean-Pierre Rosen wrote:
> Thanks for the reference.  Is your work-around valid?  Isn't calling
> Relay_Object.Isr a potentially blocking operation, and thus a bad thing
> to do in an interrupt?
No, calling a protected *procedure* is not potentially-blocking (unlike 
calling a protected *entry*). If your compiler has ceiling_locking by 
defauly you may have to adjust the priority, though.

> Another work-around suggested to me was to move the processing logic
> out of the entry and into the task, and just use the entry for the
> triggerring.  What do you think about this?
Nothing, since I don't know what was a problem with your original 
design. As far as I understand, it's the mere fact of calling an entry 
of a protected object that serves as interrupt handler, with a priority 
in Interrupt_Priority range. So I don't think that moving the logic 
would change anything, as long as you still call the entry;

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  parent reply	other threads:[~2006-08-25  6:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 14:47 protected type interrupts REH
2006-08-24 15:39 ` Jean-Pierre Rosen
2006-08-24 16:23   ` REH
2006-08-24 18:15     ` Adam Beneschan
2006-08-24 19:16       ` REH
2006-08-24 21:16         ` Adam Beneschan
2006-08-24 21:39           ` REH
2006-08-25  6:45           ` Jean-Pierre Rosen
2006-08-24 23:55         ` Jeffrey R. Carter
2006-08-25  6:42         ` Jean-Pierre Rosen
2006-08-24 23:47     ` Jeffrey R. Carter
2006-08-25  6:38     ` Jean-Pierre Rosen [this message]
2006-08-24 20:11 ` Simon Wright
2006-08-24 23:50 ` Jeffrey R. Carter
2006-08-25  6:48   ` Jean-Pierre Rosen
2006-08-25 11:33     ` REH
2006-08-25 17:27       ` Jean-Pierre Rosen
2006-08-25 20:57     ` Jeffrey R. Carter
2006-08-25 23:17       ` REH
2006-08-26  6:38         ` Jeffrey R. Carter
2006-08-26 13:16           ` REH
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox