comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: OS support for ATC's
Date: Wed, 23 May 2012 17:18:56 -0700 (PDT)
Date: 2012-05-23T17:18:56-07:00	[thread overview]
Message-ID: <6ec8f165-9177-47cd-b96d-bce88f33ecca@googlegroups.com> (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



                 reply	other threads:[~2012-05-24  0:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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