From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Task activation
Date: Wed, 21 Dec 2011 14:35:15 +0200
Date: 2011-12-21T14:35:15+02:00 [thread overview]
Message-ID: <9le1v2Foe6U1@mid.individual.net> (raw)
In-Reply-To: <8c55f10b-5854-4b0b-835a-bf9c46b4dff4@e2g2000vbb.googlegroups.com>
On 11-12-21 13:58 , tonyg wrote:
>
> I seem to have a problem with task activation
>
> I have a task which I am using to launch other tasks. This task is
> activating fine. I have three task pointers in a package spec, when I
> want to activate the task I declare a task of the necessary type
> inside a procedure and point the access variable to the task. However
> it does not seem to get past activation of the task. I cannot see the
> reason for this.
If you declare a task as a local object within a procedure, the
procedure cannot return until the task is completed. The procedure will
wait at its "end" for all its local tasks to finish.
If you want to create a task in a procedure in such a way that the task
continues to exist and run after the procedure returns, you must make
the procedure allocate a new task object, from the heap, with a "new".
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2011-12-21 12:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 11:58 Task activation tonyg
2011-12-21 12:27 ` tonyg
2011-12-21 12:31 ` AdaMagica
2011-12-21 12:35 ` Niklas Holsti [this message]
2011-12-22 8:26 ` tonyg
-- strict thread matches above, loose matches on Subject: below --
1999-11-20 0:00 task activation Matthew Heaney
1999-11-21 0:00 ` Jean-Pierre Rosen
1999-11-22 0:00 ` Robert A Duff
1999-11-22 0:00 ` Matthew Heaney
1999-11-23 0:00 ` Mats Weber
1999-11-23 0:00 ` Matthew Heaney
1999-12-02 0:00 ` Ehud Lamm
1999-12-03 0:00 ` Simon Wright
1999-12-06 0:00 ` Robert Dewar
1999-12-06 0:00 ` Robert Dewar
1999-12-06 0:00 ` Robert A Duff
1999-12-06 0:00 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox