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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4bd6ca8f7a1eb225 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.35.131 with SMTP id h3mr3820796pbj.1.1322044913232; Wed, 23 Nov 2011 02:41:53 -0800 (PST) Path: lh20ni8686pbb.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Class with task destructor Date: Wed, 23 Nov 2011 11:41:36 +0100 Organization: cbb software GmbH Message-ID: References: <30604696.94.1322013045135.JavaMail.geo-discussion-forums@yqzz20> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:19075 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-11-23T11:41:36+01:00 List-Id: On Wed, 23 Nov 2011 09:05:51 +0000, Simon Wright wrote: > You ought to wait until the task has terminated before freeing it. I > can't trace it now, but I think that AdaCore recently fixed a feature > where the TCB would be silently not deallocated if the task wasn't > terminated. Yes, I think they fixed that. However it would be better to have an explicit requirement in RM that an instance of Unchecked_Deallocation blocks until task termination. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de