From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e6066104d6deadff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!proxad.net!proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: protected type interrupts Date: Fri, 25 Aug 2006 08:38:49 +0200 Organization: Adalog Message-ID: References: <1156430839.745932.279060@75g2000cwc.googlegroups.com> <1156436616.384632.192250@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1156489267 20165 195.25.228.57 (25 Aug 2006 07:01:07 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 25 Aug 2006 07:01:07 +0000 (UTC) User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: <1156436616.384632.192250@h48g2000cwc.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:6368 Date: 2006-08-25T08:38:49+02:00 List-Id: 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