From: sjw <simon.j.wright@mac.com>
Subject: Re: Status of AdaCL: Ada Class Library
Date: Thu, 25 Feb 2010 12:19:39 -0800 (PST)
Date: 2010-02-25T12:19:39-08:00 [thread overview]
Message-ID: <c07f9ac9-9361-4966-bd12-a35cb5729c31@g26g2000yqn.googlegroups.com> (raw)
In-Reply-To: 7unf1hF7anU1@mid.individual.net
On Feb 25, 2:16 pm, "Alex R. Mosteo" <alejan...@mosteo.com> wrote:
> Never though of this before, but even wrapping a call to that in a protected
> function would be dangerous, since protected functions are concurrent? And
> that's a procedure with only "in" arguments, which would be callable from
> such a function.
>
> Am I right here?
I believe you are: LRM 9.5.1(1), "protected functions provide
concurrent read-only access to the data".
My normal mode of operation is to wrap the use of the Container (OK,
Booch Component!) in a package and use a lock to ensure single-
threaded access, with the Container outside any PO.
next prev parent reply other threads:[~2010-02-25 20:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-21 22:09 Status of AdaCL: Ada Class Library Michael R
2010-02-22 1:51 ` Björn Persson
2010-02-22 2:07 ` Michael R
2010-02-24 19:56 ` Martin Krischik
2010-02-24 23:48 ` Randy Brukardt
2010-02-25 9:22 ` Georg Bauhaus
2010-02-25 12:23 ` Stephen Leake
2010-02-25 14:16 ` Alex R. Mosteo
2010-02-25 20:19 ` sjw [this message]
2010-02-24 19:54 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox