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 22:16:17 +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 20:16:18 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ad388aee67ba9a38c0df95bd796a7445"; logging-data="7276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KZp8S67arHS8N9gtW0c4f94uM2EzSgzM=" 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:vhcVXrQiqFl3BjXO7CXR8czVK3Y= Xref: reader02.eternal-september.org comp.lang.ada:51564 Date: 2018-04-17T22:16:17+02:00 List-Id: On 04/17/2018 05:57 PM, Dmitry A. Kazakov wrote: > > What about this deduction: if the environment task is not callable then any > other task is not callable, because it depends on the environment task. That doesn't follow. There's nothing that prevents the environment task from being non-callable while other tasks are callable. When the environment task returns from calling the main-program subprogram, it becomes completed and non-callable. It then waits until all dependent tasks complete. Then it does library-level finalization. Then it terminates. There can be a period there when the environment task has completed and some dependent tasks have not. Indeed, if any library-level tasks never finish, that period can be infinite. -- Jeff Carter "I was either in love, or I had smallpox." Take the Money and Run 137