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,19ad05fdbf4e671f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Deallocating records with task type fields. Date: Sat, 10 Dec 2005 11:45:37 +0000 Organization: Pushface Message-ID: References: <1134168554.826805.70690@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1134215132 5277 62.49.19.209 (10 Dec 2005 11:45:32 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 10 Dec 2005 11:45:32 +0000 (UTC) Cancel-Lock: sha1:sSB38X5n1hQH/7C2R3imUGJYrgI= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6811 Date: 2005-12-10T11:45:37+00:00 List-Id: "Jeffrey R. Carter" writes: > Gene wrote: >> 2. As I read the ALRM it is incorrect to deallocate a >> Listener_Type object until the Executive task has exited. What is >> a good idiomatic way for the Executive to deallocate its own task >> local storage just before it exits and without causing a race >> condition? [The only ways I can come up with seem like excessive >> machinery.] > > The best way is not to use allocation, and thus not need > deallocation. True, but there's still the problem of freeing the resource abstracted in Gene's original by the Listener_Type object (that is, the port).