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,95a195198c452b32 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Finalization of a record containing a task Date: 16 Feb 2005 17:09:40 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4213b899$0$20902$ba620e4c@news.skynet.be> NNTP-Posting-Host: shell01-e.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1108591780 3589 69.38.147.31 (16 Feb 2005 22:09:40 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 16 Feb 2005 22:09:40 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:8364 Date: 2005-02-16T17:09:40-05:00 List-Id: Adrien Plisson writes: > Stephen Leake wrote: > > > ssh9614@hotmail.com (Bj?rn) writes: > >>I do not see how I can manage this since the ADT does not seem to > >>finalize as long as the tasks have not terminated. > > you need to have a 'select' statement, with an open 'terminate' > > alternative. > > alternately, since T_ADT is Limited_Controlled, you may abort the inner > task in its Finalize (!! baaad !!) But the problem is that the program hangs, waiting for termination of the task, *before* it calls the Finalize that does the abort (or calls the Stop entry, in the original example). - Bob