comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Task origin track from a class
Date: Tue, 12 Jul 2011 11:29:59 +0100
Date: 2011-07-12T11:29:59+01:00	[thread overview]
Message-ID: <m2k4bnyeoo.fsf@pushface.org> (raw)
In-Reply-To: 4o0rnqqqec1s$.19h46xsbjbku2.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> So the unfortunate rule of the thumb is: never use task components,
> but access to task instead. From Finalize you would call Stop entry or
> an equivalent and then free the task object using
> Unchecked_Deallocation.

With GNAT, best not to free the task object until 'Terminated is True
(GNAT's I have used would silently fail to actually free the TCB!
resulting in an insidious memory leak).



  reply	other threads:[~2011-07-12 10:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12  3:24 Task origin track from a class Rego, P.
2011-07-12  5:57 ` Simon Wright
2011-07-12  7:41 ` Dmitry A. Kazakov
2011-07-12 10:29   ` Simon Wright [this message]
2011-07-12 10:31     ` Simon Wright
2011-07-13  0:36       ` Shark8
2011-07-13  2:57         ` Rego, P.
2011-07-13  7:41         ` Dmitry A. Kazakov
2011-07-13  8:43           ` Georg Bauhaus
2011-07-13 11:59             ` Dmitry A. Kazakov
2011-07-13 16:31           ` Shark8
2011-07-13 17:22             ` Dmitry A. Kazakov
replies disabled

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