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,3e11ef4efc073f6b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: requeue with abort and timed call References: <2a60b044-6a5c-4ce6-93e6-6eeefc8806c3@l33g2000pri.googlegroups.com> <1f6rcb1qwt7vx.1mckzyk9ucohf.dlg@40tude.net> <84c56781-1cb1-4d86-be14-e66fc9fdade6@w1g2000prk.googlegroups.com> <7p8onuvzdz18$.1m1dq8n3b52q5.dlg@40tude.net> <9j9ajg.3a7.ln@hunter.axlog.fr> <2a0a1de3-6736-4478-9378-50b8895fa20d@r15g2000prh.googlegroups.com> <133a14c1-efc1-4a27-bc66-cff24a75ef93@z28g2000prd.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4uQ7l.509148$yE1.49118@attbi_s21> NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1231016960 173.16.158.68 (Sat, 03 Jan 2009 21:09:20 GMT) NNTP-Posting-Date: Sat, 03 Jan 2009 21:09:20 GMT Organization: AT&T ASP.att.net Date: Sat, 03 Jan 2009 21:09:20 GMT Xref: g2news1.google.com comp.lang.ada:3193 Date: 2009-01-03T21:09:20+00:00 List-Id: ishikawa@arielworks.com wrote: > > protected body P is > entry E1 when True is > begin > Put_Line ("E1"); > delay 5.0; -- takes over Parent's delay > Put_Line ("E1 done"); > end E1; > > entry E2 when True is > begin > Put_Line ("E2"); > end E2; > end P; Delay statements and calls to Ada.Text_IO.Put_Line are potentially blocking operations. It is an error to call potentially blocking operations from a protected action. See ARM 9.5.1. -- Jeff Carter "Pray that there's intelligent life somewhere up in space, 'cause there's bugger all down here on earth." Monty Python's Meaning of Life 61