From: Simon Wright <simon@pushface.org>
Subject: Re: Task origin track from a class
Date: Tue, 12 Jul 2011 11:31:45 +0100
Date: 2011-07-12T11:31:45+01:00 [thread overview]
Message-ID: <m2fwmbyelq.fsf@pushface.org> (raw)
In-Reply-To: m2k4bnyeoo.fsf@pushface.org
Simon Wright <simon@pushface.org> writes:
> "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).
Oops, I forgot to add that I'd aborted the task first (as Dmitry said,
it's not always possible to arrange a clean shutdown).
next prev parent reply other threads:[~2011-07-12 10:31 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
2011-07-12 10:31 ` Simon Wright [this message]
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