comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Termination of periodic tasks
Date: Tue, 17 Jun 2014 13:16:04 -0700
Date: 2014-06-17T13:16:04-07:00	[thread overview]
Message-ID: <lnq7m4$1li$1@dont-email.me> (raw)
In-Reply-To: <lnq6pk$enn$1@loke.gir.dk>

On 06/17/2014 01:00 PM, Randy Brukardt wrote:
>
> Actually, there is a way, at least if you want to ensure that the program
> cleans itself up properly. We invented it for Claw, and I put it into the
> ACATS so it's pretty certain that all compilers support it.
>
> The trick is to use Ada.Task_Identification to find out whether the
> environment task is trying to exit.
>
>      if not Is_Callable(Environment_Task) then
>          return; -- Exit this task.
>     end if;

That's good to know. I'll try to add it to my bag of tricks (though of course 
not needing any tricks is better).

-- 
Jeff Carter
"Whatever it is, I'm against it."
Horse Feathers
46


  reply	other threads:[~2014-06-17 20:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-15 10:10 Termination of periodic tasks Natasha Kerensikova
2014-06-15 12:11 ` Dmitry A. Kazakov
2014-06-15 15:23 ` J-P. Rosen
2014-06-16 13:54   ` Natasha Kerensikova
2014-06-17 20:14     ` Charles H. Sampson
2014-06-18  7:32       ` Dmitry A. Kazakov
2014-06-15 16:54 ` Jeffrey Carter
2014-06-16 14:02   ` Natasha Kerensikova
2014-06-16 15:08     ` Dmitry A. Kazakov
2014-06-16 17:08     ` Jeffrey Carter
2014-06-17  6:57       ` Natasha Kerensikova
2014-06-17  7:37         ` Dmitry A. Kazakov
2014-06-17  7:47           ` Natasha Kerensikova
2014-06-17  8:45             ` Dmitry A. Kazakov
2014-06-17  9:00               ` Natasha Kerensikova
2014-06-17 12:55                 ` Dmitry A. Kazakov
2014-06-17 14:51                   ` J-P. Rosen
2014-06-17 16:44                     ` Dmitry A. Kazakov
2014-06-17 20:00                       ` Randy Brukardt
2014-06-17 20:16                         ` Jeffrey Carter [this message]
2014-06-17 21:30                         ` Simon Wright
2014-06-17 12:02         ` Jacob Sparre Andersen
2014-06-17 19:32           ` Natasha Kerensikova
2014-06-17 17:53         ` Jeffrey Carter
2014-06-17 20:03           ` Randy Brukardt
replies disabled

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