comp.lang.ada
 help / color / mirror / Atom feed
From: tonyg <tonythegair@gmail.com>
Subject: Re: Task activation
Date: Thu, 22 Dec 2011 00:26:51 -0800 (PST)
Date: 2011-12-22T00:26:51-08:00	[thread overview]
Message-ID: <b4a7802c-81a4-4c05-b4ad-ae9930617c2a@a17g2000yqj.googlegroups.com> (raw)
In-Reply-To: 9le1v2Foe6U1@mid.individual.net

On Dec 21, 12:35 pm, Niklas Holsti <niklas.hol...@tidorum.invalid>
wrote:
> 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
>        .      @       .

My apologies , the information I supplied was sketchy. My problem (or
challenge :) )
was resolved by using the pragma elaborate_all on my 'with's of the
packages containing
the tasks.



  reply	other threads:[~2011-12-22  8:26 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
2011-12-22  8:26   ` tonyg [this message]
  -- 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         ` Simon Wright
1999-12-06  0:00         ` 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