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: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wns13feed!worldnet.att.net!attbi_s22.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> <4uQ7l.509148$yE1.49118@attbi_s21> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1231123685 173.16.158.68 (Mon, 05 Jan 2009 02:48:05 GMT) NNTP-Posting-Date: Mon, 05 Jan 2009 02:48:05 GMT Organization: AT&T ASP.att.net Date: Mon, 05 Jan 2009 02:48:05 GMT Xref: g2news2.google.com comp.lang.ada:4171 Date: 2009-01-05T02:48:05+00:00 List-Id: Dmitry A. Kazakov wrote: > > No, it is perfectly legal to use Put_Line in protected actions *with* GNAT. > > GNAT implementation explicitly permits this use. So Jeffrey's comment was > irrelevant here. No, the use of Ada.Text_IO.Put_Line in a protected action is a bounded error with *all* compilers, GNAT included. A bounded error is an error, therefore this use is an error for all compilers. What happens in the case of a bounded error is compiler dependent. GNAT 6.1.1 gives me a warning if I use a delay statement in a protected operation, but otherwise allows it. Another compiler might choose to raise Program_Error at run time. > Pedantically, you should have added pragma Atomic (Z), because you access > it from different tasks. And probably Volatile (Z) to prevent loop > optimization. It's more than pedantic if you have multiple processors. > for I in Unsigned_64'Range loop > exit when Clock >= T; > end loop; loop exit when ... end loop; -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail 08