comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Termination of periodic tasks
Date: Tue, 17 Jun 2014 15:03:03 -0500
Date: 2014-06-17T15:03:03-05:00	[thread overview]
Message-ID: <lnq6tm$eok$1@loke.gir.dk> (raw)
In-Reply-To: lnpvb7$oat$3@dont-email.me

"Jeffrey Carter" <spam.jrcarter.not@spam.not.acm.org> wrote in message 
news:lnpvb7$oat$3@dont-email.me...
> On 06/16/2014 11:57 PM, Natasha Kerensikova wrote:
>>
>> Now the master of Global_Entry is also the environment task. So
>> Global_Entry will not be finalized before the worker task terminates,
>> but by design the worker task will not terminate before Global_Entry is
>> finalized or Reset.
>>
>> So unless at some point Global_Entry.Reset is called, this package will
>> cause the program to never terminate.
>>
>> Is there a way to work around such a situation? Or should I just
>> document this as a caveat (among many others, as you can see at the
>> beginning of the spec)?
>
> AFAICT, there is no way for this situation to terminate without outside 
> intervention.

That's certainly true for this code as written, but there is a way to write 
the code so it will terminate. See my other message.

Note that you need both methods if you want to allow the objects to be 
declared anywhere: finalization for objects in nested scopes, and the 
Is_Callable trick for those declared at library-level.

                                   Randy.




      reply	other threads:[~2014-06-17 20:03 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
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 [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