comp.lang.ada
 help / color / mirror / Atom feed
* OS support for ATC's
@ 2012-05-24  0:18 sbelmont700
  0 siblings, 0 replies; only message in thread
From: sbelmont700 @ 2012-05-24  0:18 UTC (permalink / raw)


The LRM 9.7.4 defines an "Asynchronous Transfer of Control" (otherwise known as an abortable select statment), where one part can be preempted by the acceptance of an entry in the other.  GNAT, however, defines a compiler-specific "polling" pragma that is ostensibly required to support ATC's on "targets that cannot otherwise support it", and Windows is given as the example.

I suppose it's more a GNAT-specific question, but how does one know if ATC's are supported on some arbitray target (DOS, Vxworks, brand-X linux, OS/2, etc)?  The LRM makes no mention that they might not be supported, so it seems odd to me that GNAT requires specific action to make it so, and moreso that they provide no particular guidance on when it's required and presumably would compile a program that would not work (i.e. if the polling pragma was not turned on for windows, I assume it would simply not abort when required).

-sb



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-24  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24  0:18 OS support for ATC's sbelmont700

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