From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee06257af909a235 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q66g2000hsg.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Finalization of static package variables Date: 21 May 2007 21:41:36 -0700 Organization: http://groups.google.com Message-ID: <1179808896.415796.143670@q66g2000hsg.googlegroups.com> References: <4640f20b$1@news.upm.es> <1178723724.958486.24820@u30g2000hsc.googlegroups.com> <464244d8$1@news.upm.es> <1178753228.648765.89390@e65g2000hsc.googlegroups.com> <1179324410.556097.234870@u30g2000hsc.googlegroups.com> NNTP-Posting-Host: 80.156.44.1 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1179808896 2992 127.0.0.1 (22 May 2007 04:41:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 22 May 2007 04:41:36 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 5.3.0.2521) Complaints-To: groups-abuse@google.com Injection-Info: q66g2000hsg.googlegroups.com; posting-host=80.156.44.1; posting-account=nIrLjQ0AAAAgar8ljl4x6DQaFY__mhF4 Xref: g2news1.google.com comp.lang.ada:15870 Date: 2007-05-21T21:41:36-07:00 List-Id: On 16 Mai, 21:10, "Randy Brukardt" wrote: > No, because your proposed "fix" is more complex than the trick, which is > simply to use Ada.Task_Identification: > > -- In a librarypackage: > with Ada.Task_Identification; use Ada.Task_Identification; > > Env_Task_Id : constant Task_Id := Current_Task; > > Now, in any task that you want to take special action if the main subprogram > has exited: > > if Is_Completed (Env_Task_Id) then There is no such function as is_Completed. Which do you mean: is_Terminated or not is_Callable?