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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6009c73a58f787a0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-13 12:25:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to avoid unreferenced objects (mutexes etc) Date: 13 Jan 2002 15:08:44 +0000 Organization: Pushface Message-ID: References: <3c3ee8c8.105408250@News.CIS.DFN.DE> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1010953444 nnrp-12:5900 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 13 Jan 2002 15:08:44 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:18875 Date: 2002-01-13T15:08:44+00:00 List-Id: "Nick Roberts" writes: > Or, to put it another way, the standard idiom in this case doesn't > seem to address the problem of an exception leaving the resource in > question in an unstable state. Nor does it do anything to mitigate > the effects of accidentally omitting (or wrongly positioning) one of > the seize or release calls. ? critical : declare l : Lock; begin critical stuff end critical; * No seize/release calls * Finalization on exit from critical region for whatever reason (including exceptions)