comp.lang.ada
 help / color / mirror / Atom feed
* can not abort allocated tasks
@ 1987-10-09 15:22 nico nieh
  1987-10-12 13:27 ` fitch
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: nico nieh @ 1987-10-09 15:22 UTC (permalink / raw)



I am writing a simulation program using Ada task facilities.
What I wanted to do is to be able to abort a task which
is activated by using the allocator.

The program segment looks like,

 task type pool is
     entry draw(which : out integer); -- contains an infinite loop
 end
 type t_pool is access pool;
 pool_1 : t_pool;
 pool_2 : pool;
 begin
 ....
 ....
 pool_1 := new pool;
 ...
 ...
 abort pool_1;

However, both DEC/ADA and Verdix Ada compiler gave syntax error at the
abort statement.

According to the LRM,

   abort_statement  ::=  ABORT task_name {,task_name};
 
the abort statement only takes task_names not pointers to task.

Is there any way to abort task pool_1 ?














     Ko-Haw Nieh
     General Electric Company 
     Corporate Research and Development
     nieh@ge-crd.arpa
     518-387-7431

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

end of thread, other threads:[~1987-10-12 21:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-10-09 15:22 can not abort allocated tasks nico nieh
1987-10-12 13:27 ` fitch
1987-10-12 15:53 ` Jonathan P. Biggar
1987-10-12 17:37 ` Jeff Bartlett
1987-10-12 19:54 ` Claudio Nieder
1987-10-12 21:17 ` Michael Murphy

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