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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Finalization of library level tasks Date: Tue, 17 Apr 2018 17:37:23 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <702e2422-a93f-4200-9749-5122c3d0f899@googlegroups.com> <04f19a56-7fab-416e-8ec0-b9a73e239e90@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 17 Apr 2018 15:37:23 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ad388aee67ba9a38c0df95bd796a7445"; logging-data="9170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UfdDE0MAxXwn9zdswpt/oP0lQ/VeG6w8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:U9ADlEj+Xk0w7w2gPpL9EQMP+zs= Xref: reader02.eternal-september.org comp.lang.ada:51559 Date: 2018-04-17T17:37:23+02:00 List-Id: On 04/17/2018 02:31 PM, Dmitry A. Kazakov wrote: > > Quite naturally, when the master is being finalized it marks the task as > terminating and waits for its completion. The task marked for termination has > T'Callable false and so terminates. 'Callable returns True if the task is completed or abnormal. I would think that a task that can evaluate the condition of an "exit when" would be neither. > I hoped that T'Callable, if defined meaningfully, could spare me this mess. I'm pretty sure that Is_Callable (Environment_Task), as defined in the ARM, does what you want and spares you that mess. -- Jeff Carter "I was either in love, or I had smallpox." Take the Money and Run 137