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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Timeouts in Ada Date: Thu, 17 Jul 2014 13:52:41 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <50bdb713-7ce1-411b-810b-9bdee1d26b7a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 17 Jul 2014 20:52:42 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="ec00b5351686c67721798cbf9cd968b0"; logging-data="2860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IeAK7TPo3r1XPXy6rVB1h0LMKU7QiYlI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:0RkehaoCPFCt6ukRd9MM3iffwTA= Xref: news.eternal-september.org comp.lang.ada:21025 Date: 2014-07-17T13:52:41-07:00 List-Id: On 07/17/2014 12:51 PM, J-P. Rosen wrote: >> > Did you check this with an implementation? For one thing, Current_Task must > be the same in the abortable part and in the trigger... And Adam Beneschan wrote: > Not quite. If the is an entry call, and the entry can be selected > immediately, the never starts (unless the entry is > requeued-with-abort); your code would have the start, and > then get aborted when the entry call is completed. > > If the trigger is an entry call and the entry is queued, *then* the abortable > part is aborted when the entry call completes, not when it's selected. > > There are other cases where the language says the abortable part would never > start, but in your code above, it's nondeterministic whether your abortable > part would start or not. "Shorthand", of course, was shorthand for "roughly equivalent to", or maybe "intended to be better than ..., which is what people did in Ada 83". -- Jeff Carter "You a big nose have it." Never Give a Sucker an Even Break 107