comp.lang.ada
 help / color / mirror / Atom feed
* abort task on WinNT
@ 2000-09-13 11:56 Alfred Hilscher
  2000-09-13  0:00 ` Robert A Duff
  0 siblings, 1 reply; 2+ messages in thread
From: Alfred Hilscher @ 2000-09-13 11:56 UTC (permalink / raw)


Hello,

I have a program consisting of a main procedure, handling user-input and
a local, free-running task. It looks like follows (schematic):

procedure p is
  task t is
  end t;

  task body t is
  begin
    loop
      null;
    end loop;
  end t;
begin
  null;
end p;

The problem I have is, the program must terminate immediately when the
user request termination. But due to the task running in a loop, it
doesn't (it waits for the task termination I think). I tried to insert
an "abort t;" at the end of "p", but it still doesn't terminate. In the
final solution, task t shall do remote communication (via serial or
TCP/IP). So maybe it waits for data transmission and will not be ready
for a rendevzous saying "shutdown". 
So my question is: how can I force immediate programm termination ?

I work on Windows NT 4.0



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

end of thread, other threads:[~2000-09-13 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-13 11:56 abort task on WinNT Alfred Hilscher
2000-09-13  0:00 ` Robert A Duff

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