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,ea9fbf0f08e5af8a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Delayed deallocation of non-terminated task in Gnat? Date: Tue, 30 Aug 2011 17:20:02 +0200 Organization: cbb software GmbH Message-ID: <1k4finucoux98.7be4jx6iy5kx$.dlg@40tude.net> References: <31ba531d-fa8e-40f3-97bc-c9112b329fe2@14g2000prv.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:21721 Date: 2011-08-30T17:20:02+02:00 List-Id: On Tue, 30 Aug 2011 06:22:43 -0700 (PDT), Marc C wrote: > Saw this pop up in AdaCore's Developer Center notices: > >>[GNAT] Automatic deallocation of task upon termination >> >>Monday August 29, 2011 >> >>If Unchecked_Deallocation is called on a non-terminated task (which was previously a no-op), >>the task is now marked to be freed automatically when it terminates. > > [http://www.adacore.com/2011/08/29/NF-65-H911-007-gnat/] > > This *looks* to me like one could dynamically allocate a task instance > and then immediately free it with an instantiation of > Unchecked_Deallocation, yet the task would continue to function > normally until it terminates. Does it mean that Unchecked_Deallocation won't wait for the task to terminate? That would be surprising. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de