comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Delayed deallocation of non-terminated task in Gnat?
Date: Wed, 31 Aug 2011 22:30:50 +0200
Date: 2011-08-31T22:30:50+02:00	[thread overview]
Message-ID: <j3m5lh$pv6$2@dont-email.me> (raw)
In-Reply-To: <c03bf799-1f02-4042-8207-599e0af75dc6@w22g2000prj.googlegroups.com>

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



  parent reply	other threads:[~2011-08-31 20:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 13:22 Delayed deallocation of non-terminated task in Gnat? Marc C
2011-08-30 15:20 ` Dmitry A. Kazakov
2011-08-31 18:12   ` Robert A Duff
2011-08-31 19:23     ` Dmitry A. Kazakov
2011-08-31 20:58       ` Robert A Duff
2011-08-31 21:16         ` Jeffrey Carter
2011-08-31 20:25     ` J-P. Rosen
2011-08-31 21:09       ` Robert A Duff
2011-08-31 21:53         ` Simon Wright
2011-08-30 15:38 ` Adam Beneschan
2011-08-30 16:42   ` Dmitry A. Kazakov
2011-08-30 18:57     ` Niklas Holsti
2011-08-30 19:23       ` Dmitry A. Kazakov
2011-08-31 16:39   ` Adam Beneschan
2011-08-31 18:21     ` Robert A Duff
2011-08-31 23:28       ` Adam Beneschan
2011-09-01 11:58         ` Robert A Duff
2011-08-31 20:30     ` J-P. Rosen [this message]
2011-08-31 22:36       ` Adam Beneschan
2011-09-01  5:24         ` J-P. Rosen
2011-08-31 18:08 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox