comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Handling transactions?
Date: Tue, 28 Jul 2015 07:33:03 +0200
Date: 2015-07-28T07:33:03+02:00	[thread overview]
Message-ID: <mp743k$dfq$1@dont-email.me> (raw)
In-Reply-To: <mp6h92$q5h$1@loke.gir.dk>

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

  reply	other threads:[~2015-07-28  5:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 12:21 Handling transactions? EGarrulo
2015-07-27 14:16 ` Björn Lundin
2015-07-27 14:38   ` EGarrulo
2015-07-27 14:53     ` Simon Wright
2015-07-27 16:38       ` David Botton
2015-07-27 18:15         ` EGarrulo
2015-07-28  0:10           ` Randy Brukardt
2015-07-28  5:33             ` J-P. Rosen [this message]
2015-07-28  6:45             ` Dmitry A. Kazakov
2015-07-28 20:23               ` Randy Brukardt
2015-07-28  2:41         ` Norman Worth
2015-07-29  6:51 ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox