comp.lang.ada
 help / color / mirror / Atom feed
From: gpriv@axonx.com
Subject: Re: Task question
Date: Mon, 10 Dec 2007 14:29:17 -0800 (PST)
Date: 2007-12-10T14:29:17-08:00	[thread overview]
Message-ID: <68057b42-eff2-4d97-ac7f-7aed6b69dff6@s19g2000prg.googlegroups.com> (raw)
In-Reply-To: 31235206-1025-467c-8444-07a8eacc9b48@e6g2000prf.googlegroups.com

On Dec 10, 5:12 pm, shaunpatter...@gmail.com wrote:
> 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

procedure test is



procedure Test is

   task Labor;
   task body Labor is
   begin
      select
         delay 10.0;    -- Give a timeout for your function to do the
job
      then abort
         FuncPtr.all;
      end select;
   end Labor;

begin
   null;
end Test;






  reply	other threads:[~2007-12-10 22:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 22:12 Task question shaunpatterson
2007-12-10 22:29 ` gpriv [this message]
2007-12-10 22:51   ` shaunpatterson
2007-12-10 23:13     ` gpriv
2007-12-10 23:40 ` Robert A Duff
2007-12-11  0:43 ` anon
  -- strict thread matches above, loose matches on Subject: below --
1997-10-16  0:00 Paul Van Gorp
1997-10-19  0:00 ` elaine.waybright
1997-11-01  0:00   ` Matthew Heaney
1997-10-21  0:00 ` Robert A Duff
1997-10-06  0:00 Larry Coon
1997-10-07  0:00 ` Robert A Duff
1997-10-13  0:00   ` Larry Coon
1997-10-07  0:00 ` David C. Hoos, Sr.
1997-10-07  0:00   ` Steve O'Neill
1997-10-07  0:00   ` Larry Coon
1997-10-08  0:00   ` Tom Moran
1997-10-08  0:00   ` Matthew Heaney
1997-10-07  0:00 ` Matthew Heaney
1997-10-07  0:00   ` Larry Coon
1997-10-30  0:00 ` Balmacara9
1996-09-15  0:00 task question Nicolay Belofastow
1996-09-23  0:00 ` Matthew Heaney
     [not found] <204266@QZCOM>
1986-09-26 17:28 ` Task question Matts_Kallioniemi_QZ
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox