TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Fri, 21 Apr 2000 14:27:52 -0600
text/plain (35 lines)
Friday, April 21, 2000 1:20 PM, Mark Lundquist [SMTP:[log in to unmask]] wrote:
> From:  "Beard, Frank" <[log in to unmask]>
> > So, I'm trying to figure out if I'm hitting some type of
> > timing problem where one task is freeing an object's
> > memory while another task is picking up memory for
> > the same type of object.  In other words, does a
> > protected function not block another task from calling
> > a protected procedure.
> No, a protected function *does* exclude any "external calls" ([RM 9.5])
> (procedure, function, or entry) on the P.O.  See [RM 9.5.1(3-6)].
> --
Section 9.5.1[1] states:
   "protected functions provide concurrent read-only access to the data." (in
the P.O.)


Section 9.5.1[4] states:
   "A new protected action is not started on a protected object while another
   protected action on the same protected object is underway, unless both
   actions are the result of a call on a protected function"

so multiple tasks may be in the same (or multiple) protected function(s) from
same P.O. at the same time, correct?

Robin P. Reagan - Software Engineer  [log in to unmask]
SEAKR Engineering, Inc.              v-303.649.1763x10
12847 East Peakview Avenue           f-303.649.1326
Englewood, CO  80011
"Imagination is more important than knowledge" -Albert Einstein-