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,ea9fbf0f08e5af8a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!fu-berlin.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Delayed deallocation of non-terminated task in Gnat? Date: Wed, 31 Aug 2011 22:30:50 +0200 Organization: A noiseless patient Spider Message-ID: References: <31ba531d-fa8e-40f3-97bc-c9112b329fe2@14g2000prv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 31 Aug 2011 20:30:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="26598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Hvbe/WB1AHvenkUufPfRR" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: Cancel-Lock: sha1:OUxd4GUaupZffEnn7gKIfoUb5vM= Xref: g2news2.google.com comp.lang.ada:21769 Date: 2011-08-31T22:30:50+02:00 List-Id: Le 31/08/2011 18:39, Adam Beneschan a �crit : > One thing that bothers me a bit, although I don't know if it bothers > me enough to request an RM change: 13.11.2(10) says that after > Free(X), the designated object and its subcomponents no longer exist. > 9.1(15-18) says that the content of a task object includes entry > queues for the task. I'm willing to accept that there is a > distinction between a task object and a task (or a task execution), > but if the task object no longer exists, does that mean that the entry > queues that it contains no longer exist, and that therefore if another > task Y was waiting on X.all's entry when X was freed, so that the > entry queue on which Y was sitting no longer exists, does Y's entry > call get cancelled? Again, I don't think this is the intent, but I'm > not sure. > As soon as a task iscompleted, all waiting tasks receive Tasking_Error. Since the space is (hopefully!) deallocated after the task is completed (and even terminated), there is no problem. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00