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-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: protected type interrupts References: <1156430839.745932.279060@75g2000cwc.googlegroups.com> <1156436616.384632.192250@h48g2000cwc.googlegroups.com> In-Reply-To: <1156436616.384632.192250@h48g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <2UqHg.107114$FQ1.101101@attbi_s71> NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1156463230 12.201.97.176 (Thu, 24 Aug 2006 23:47:10 GMT) NNTP-Posting-Date: Thu, 24 Aug 2006 23:47:10 GMT Date: Thu, 24 Aug 2006 23:47:10 GMT Xref: g2news2.google.com comp.lang.ada:6364 Date: 2006-08-24T23:47:10+00:00 List-Id: REH wrote: > > 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? That is probably a good idea. Your protected object has a ceiling priority that is an interrupt priority, so the entry body, whether executed by the calling task or by the thread of control from the interrupt, is executed at an interrupt priority. It's not a good idea to do any extensive processing at an interrupt priority. Moving the processing into the task allows it to be done at a lower priority. -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail 07