comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: abort task on WinNT
Date: 2000/09/13
Date: 2000-09-13T00:00:00+00:00	[thread overview]
Message-ID: <wcc1yyo6vr8.fsf@world.std.com> (raw)
In-Reply-To: 39BF6B74.786B4219@icn.siemens.de

Alfred Hilscher <Alfred.Hilscher@icn.siemens.de> writes:

> 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.

You should look at RM-9.8(15-19) and D.6(2).  You should find out
whether your compiler supports Annex D.

You can kill the whole program by aborting the environment task.  To get
the ID of the env task, declare a constant in a library package (or in
the main procedure) initialized to Current_Task.  See C.7.1.

Are you sure you want to stop the program "immediately"?
What if it's in the middle of doing something important?

- Bob




      reply	other threads:[~2000-09-13  0:00 UTC|newest]

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

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