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.5 required=5.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1dc110ae98b0b7f1,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e6g2000prf.googlegroups.com!not-for-mail From: shaunpatterson@gmail.com Newsgroups: comp.lang.ada Subject: Task question Date: Mon, 10 Dec 2007 14:12:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <31235206-1025-467c-8444-07a8eacc9b48@e6g2000prf.googlegroups.com> NNTP-Posting-Host: 155.219.241.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1197324729 20834 127.0.0.1 (10 Dec 2007 22:12:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Dec 2007 22:12:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e6g2000prf.googlegroups.com; posting-host=155.219.241.10; posting-account=O0hwoQoAAABTUhctVKyLpysYxVt3QnYo User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18871 Date: 2007-12-10T14:12:09-08:00 List-Id: Hey, What is the best / proper way to spawn a new task so that a function call can continue in the background.. like so: procedure Test is begin -- Call a callback function that may take a long time FuncPtr.all -- Continue other processing here end Test; Is there any way to encapsulate the callback function call in another task WITHOUT making the function -- the function called by funcptr.all -- a new task? Thanks -- Shaun