comp.lang.ada
 help / color / mirror / Atom feed
* ATC, an  example please.
@ 2005-06-30  8:44 e.coli
  2005-06-30  9:32 ` Dmitry A. Kazakov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: e.coli @ 2005-06-30  8:44 UTC (permalink / raw)


how ATC work?
can you fix this example,please?

------------------------------------------------------------------
with Ada.Text_Io;

procedure Atc_Test is

   task A_Task is
      entry Foo;
   end A_Task;

   task body A_Task is
   begin
      loop
         accept Foo;
         Ada.Text_Io.Put_Line("one.start");
         for Iteration in 1..100000 loop
            Ada.Text_Io.Put(".");
         end loop;
         Ada.Text_Io.Put_Line("one.end");
      end loop;
   end A_Task;

begin
   select
      delay 2.0;
      Ada.Text_Io.Put_Line ("Long calculation abandoned");
   then
      abort
      A_Task.Foo;
   end select;
   Ada.Text_Io.Put_Line ("end main");

end Atc_Test;
-----------------------------------------------------------------

best regards
Maurizio




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-02  8:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30  8:44 ATC, an example please e.coli
2005-06-30  9:32 ` Dmitry A. Kazakov
2005-06-30  9:59   ` e.coli
2005-06-30 11:06   ` Christoph Grein
2005-06-30 12:55   ` Robert A Duff
2005-06-30 15:29     ` Dmitry A. Kazakov
2005-06-30 20:31       ` Robert A Duff
2005-06-30  9:32 ` e.coli
2005-07-02  8:18 ` Craig Carey

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