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,a0f8bfc88538cab5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "e.coli" Newsgroups: comp.lang.ada Subject: Re: task time-out&abort Date: 23 Jun 2005 08:26:19 -0700 Organization: http://groups.google.com Message-ID: <1119540379.606416.227950@z14g2000cwz.googlegroups.com> References: <1119463703.048124.135330@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 213.215.153.30 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1119540385 10816 127.0.0.1 (23 Jun 2005 15:26:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 23 Jun 2005 15:26:25 +0000 (UTC) In-Reply-To: <1119463703.048124.135330@o13g2000cwo.googlegroups.com> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=213.215.153.30; posting-account=OjhBzA0AAAC7IWpsLrvIpzjmXdzmh93y Xref: g2news1.google.com comp.lang.ada:11594 Date: 2005-06-23T08:26:19-07:00 List-Id: e.coli ha scritto: > here the code... i have this simple code... ------------------------------------ with Ada.Text_Io; procedure Sempliced2 is task A_Task is entry Uno; end A_Task; task body A_Task is begin loop select accept Uno do Ada.Text_Io.Put_Line("i do something"); --here code like --Horribly_Complicated_Recursive_Function(x,y); end Uno; or terminate; end select; end loop; end A_Task; begin --corpo genitore A_Task.Uno; end Sempliced2; ------------------------------------------------ Speliced2 call the task entry uno. now how Speliced2 can terminate the execution of the entry "uno" before the end of the call (es. time-out)?