comp.lang.ada
 help / color / mirror / Atom feed
* Deafult GNAT Locking_Policy
@ 2019-09-10 10:00 sbelmont700
  2019-09-10 10:06 ` AdaMagica
  2019-09-10 10:54 ` Egil H H
  0 siblings, 2 replies; 4+ messages in thread
From: sbelmont700 @ 2019-09-10 10:00 UTC (permalink / raw)



D.3~6/2 says "If no Locking_Policy pragma applies to any of the program units comprising a partition, the locking policy for that partition, as well as the meaning of the priority of a protected object, are implementation defined."  But I can't find anything anywhere in any of the GNAT documents, native or cross, that says what that default is.  There's this bit:

"GNAT supports the standard Ceiling_Locking policy, and the implementation defined Inheritance_Locking and Concurrent_Readers_Locking policies.

Ceiling_Locking is supported on all platforms if the operating system supports it. In particular, Ceiling_Locking is not supported on VxWorks. Inheritance_Locking is supported on Linux, Darwin (Mac OS X), LynxOS 178, and VxWorks. Concurrent_Readers_Locking is supported on Linux."

Should I understand this as meaning Inheritance_Locking as GNAT's default locking policy?  It guess it would have to be on VxWorks, but Linux could be any of the three.  Is there some other paragraph buried somewhere that I missed?

-sb


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-10 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox