comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: Re: Deafult GNAT Locking_Policy
Date: Tue, 10 Sep 2019 05:11:03 -0700 (PDT)
Date: 2019-09-10T05:11:03-07:00	[thread overview]
Message-ID: <b6c4be9e-85ec-480e-abe2-5e92e7d63c38@googlegroups.com> (raw)
In-Reply-To: <65b5aa95-1d54-4ee6-97a3-a5ea175acbd6@googlegroups.com>

Indeed their should be, but part 7 (Implementation Defined Characteristics) is also silent.  One would expect something for paragraph D.3(6/2), yet this is apparently the extent:

•“Implementation-defined policy_identifiers allowed in a pragma Locking_Policy. See D.3(4).”

The two implementation defined policies permitted in GNAT are Inheritance_Locking and Concurrent_Readers_Locking. On targets that support the Inheritance_Locking policy, locking is implemented by inheritance, i.e., the task owning the lock operates at a priority equal to the highest priority of any task currently requesting the lock. On targets that support the Concurrent_Readers_Locking policy, locking is implemented with a read/write lock allowing multiple protected object functions to enter concurrently.

•“Default ceiling priorities. See D.3(10).”

The ceiling priority of protected objects of the type System.Interrupt_Priority'Last as described in the Ada Reference Manual D.3(10),

•“The ceiling of any protected object used internally by the implementation. See D.3(16).”

The ceiling priority of internal protected objects is System.Priority'Last.


Was there a part I was missing?

-sb

      reply	other threads:[~2019-09-10 12:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-10 10:00 Deafult GNAT Locking_Policy sbelmont700
2019-09-10 10:06 ` AdaMagica
2019-09-10 10:54 ` Egil H H
2019-09-10 12:11   ` sbelmont700 [this message]
replies disabled

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