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: Sun, 15 Apr 2018 16:02:41 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Apr 2018 14:02:41 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="49ba640083832927bb2c73dfc6f6db66"; logging-data="21253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183ZvoZYaWm7B+NGMa6EzngWPXRAxsunPY=" 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:FsN5dKomi84UAZhqrde/yTiuKjo= Xref: reader02.eternal-september.org comp.lang.ada:51516 Date: 2018-04-15T16:02:41+02:00 List-Id: On 04/15/2018 03:40 PM, Dmitry A. Kazakov wrote: > > When an instance of T is declared in a library level package, then Finalize is > never called, I guess because the task must terminate first due to some rules > about its masters. The rule is that finalization occurs after all dependent tasks have terminated, presumably so a task cannot access a finalized object. > Is there a way to work this around? That depends on the problem, but usually a design can be reworked to provide for termination of tasks. -- Jeff Carter "Well, a gala day is enough for me. I don't think I can handle any more." Duck Soup 93