From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,30ccea015cd2b6c9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.190.2 with SMTP id gm2mr7306717pbc.4.1324542411872; Thu, 22 Dec 2011 00:26:51 -0800 (PST) Path: lh20ni50961pbb.0!nntp.google.com!news2.google.com!postnews.google.com!a17g2000yqj.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: Task activation Date: Thu, 22 Dec 2011 00:26:51 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <8c55f10b-5854-4b0b-835a-bf9c46b4dff4@e2g2000vbb.googlegroups.com> <9le1v2Foe6U1@mid.individual.net> NNTP-Posting-Host: 195.58.145.51 Mime-Version: 1.0 X-Trace: posting.google.com 1324542411 3440 127.0.0.1 (22 Dec 2011 08:26:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Dec 2011 08:26:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a17g2000yqj.googlegroups.com; posting-host=195.58.145.51; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.16) Gecko/20111108 Iceweasel/3.5.16 (like Firefox/3.5.16),gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-12-22T00:26:51-08:00 List-Id: On Dec 21, 12:35=A0pm, Niklas Holsti 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 > =A0 =A0 =A0 =A0. =A0 =A0 =A0@ =A0 =A0 =A0 . 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.