comp.lang.ada
 help / color / mirror / Atom feed
* Problem with tasks
@ 2001-07-25  8:52 Carlos Aganzo
  2001-07-25  9:32 ` Jean-Pierre Rosen
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Carlos Aganzo @ 2001-07-25  8:52 UTC (permalink / raw)


I need to create a new instance of the same task from itself,
something like

 type acell is access cell;

 task body cell is
    anon: acell;
    begin
       anon := new cell;
       -- more code
 end cell;


 How could I do this?

 Is there any way to create anonymous tasks instances,  Java-like?

 Thanks in advance.

 Carlos.




^ permalink raw reply	[flat|nested] 12+ messages in thread
* Problem with tasks
@ 2004-09-04  8:57 Magik
  2004-09-04 10:51 ` Frank J. Lhota
  2004-09-04 13:53 ` Pascal Obry
  0 siblings, 2 replies; 12+ messages in thread
From: Magik @ 2004-09-04  8:57 UTC (permalink / raw)


Hello.

1. Proces_Alarmu.Start -> Yes OK!
2. Proces_Alarmu.Stop -> Yes OK!
But
3. Proces_Alarmu.Start - Why does not start again exercise?

task Proces_Alarmu is
      entry Start;
      entry Stop;
   end Proces_Alarmu;

task body Proces_Alarmu is
   begin
      accept Start;
            loop
             select
                accept Stop;
                exit;
         or
            delay 1.0;
            end select;
put("test");
      end loop;
   end Proces_Alarmu;

Programming in Windows Gnat 3.13





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

end of thread, other threads:[~2004-09-04 13:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-25  8:52 Problem with tasks Carlos Aganzo
2001-07-25  9:32 ` Jean-Pierre Rosen
2001-07-26  1:47 ` DuckE
2001-07-26 11:20 ` Carlos Aganzo
2001-07-26 16:03 ` Ted Dennison
2001-07-26 20:28   ` Ehud Lamm
2001-07-27 12:42     ` Ehud Lamm
2001-07-27  8:15 ` Carlos Aganzo
  -- strict thread matches above, loose matches on Subject: below --
2004-09-04  8:57 Magik
2004-09-04 10:51 ` Frank J. Lhota
2004-09-04 11:02   ` Magik
2004-09-04 13:53 ` Pascal Obry

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