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!news3.google.com!news.glorb.com!news.agarik.com!skynet.be!skynet.be!newspost001!tjb!not-for-mail Date: Thu, 17 Feb 2005 09:24:16 +0100 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Finalization of a record containing a task References: <4213b899$0$20902$ba620e4c@news.skynet.be> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <421454b0$0$9136$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 0cd9b544.news.skynet.be X-Trace: 1108628657 news.skynet.be 9136 80.200.19.230:4888 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:8372 Date: 2005-02-17T09:24:16+01:00 List-Id: Robert A Duff wrote: > Adrien Plisson writes: >>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). euh... yes, you are right. i do remember now that when i did that, i was using an access to the task type. anyway, it is a very bad idea since aborting the task may have a side effect: you don't know what was going on at the time you abort the task, so the state of the data accessed by the task is undefined. -- rien