comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: abort task on WinNT
Date: Wed, 13 Sep 2000 13:56:36 +0200
Date: 2000-09-13T13:56:36+02:00	[thread overview]
Message-ID: <39BF6B74.786B4219@icn.siemens.de> (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



             reply	other threads:[~2000-09-13 11:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-13 11:56 Alfred Hilscher [this message]
2000-09-13  0:00 ` abort task on WinNT Robert A Duff
replies disabled

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