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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Handling transactions? Date: Tue, 28 Jul 2015 07:33:03 +0200 Organization: A noiseless patient Spider Message-ID: References: <6b5c318e-430d-4950-9762-e0ecdaa0ac9a@googlegroups.com> <9976ca19-a558-4f4e-80d3-a9b37ee07326@googlegroups.com> <40c8dba8-85e9-42e7-8316-96c976531ab4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 28 Jul 2015 05:31:32 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="214e2226c9a2cb4f71713357be0d6925"; logging-data="13818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v3W4zdTGC35n/o2/RyaLi" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: Cancel-Lock: sha1:SLwHFgsPLD16P8Lp6IsujgW2oqU= Xref: news.eternal-september.org comp.lang.ada:27064 Date: 2015-07-28T07:33:03+02:00 List-Id: Le 28/07/2015 02:10, Randy Brukardt a écrit : > As always, the best approach depends on exactly what you're doing. In Claw, > we needed exclusion locks in some cases, and we found the best pattern for > them was to use a limited controlled type: > [...] Note that this pattern, as well as other patterns of the Seize/Release kind that need to be safe in the face of exceptions, can be enforced by AdaControl (rule Unsafe_Paired_Calls). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr