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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA 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-7-bit Received: by 10.68.190.71 with SMTP id go7mr4868169pbc.8.1324470755755; Wed, 21 Dec 2011 04:32:35 -0800 (PST) Path: lh20ni47856pbb.0!nntp.google.com!news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Task activation Date: Wed, 21 Dec 2011 14:35:15 +0200 Organization: Tidorum Ltd Message-ID: <9le1v2Foe6U1@mid.individual.net> References: <8c55f10b-5854-4b0b-835a-bf9c46b4dff4@e2g2000vbb.googlegroups.com> Mime-Version: 1.0 X-Trace: individual.net GhDR4luwI7x+dVm/aF4xWgsoykzJyhsjoqa3zREwLvBnCRPIGe Cancel-Lock: sha1:gcIxkShvWkdpTSRNNkBlsZLdWB0= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <8c55f10b-5854-4b0b-835a-bf9c46b4dff4@e2g2000vbb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-12-21T14:35:15+02:00 List-Id: 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 . @ .