comp.lang.ada
 help / color / mirror / Atom feed
From: franke@minet.uni-jena.de (Frank Ecke)
Subject: Re: subtype of value passed to pragma Interrupt_Priority
Date: 1998/10/01
Date: 1998-10-01T00:00:00+00:00	[thread overview]
Message-ID: <slrn7175sn.78e.franke@pax01f.mipool.uni-jena.de> (raw)
In-Reply-To: 6utver$30u$1@uuneo.neosoft.com

On Wed, 30 Sep 1998 14:05:57 -0500, Pat Rogers <progers@acm.org> wrote:

> Why isn't the subtype Interrupt_Priority the target for the
> conversion for pragma Interrupt_Priority, instead of subtype
> Any_Priority?

The Rationale says in D.1.3 ``Base Priority Specification'':

``The Interrupt_Priority pragma is also allowed to specify priorities below
interrupt level, so that it is possible to write reusable code modules
containing priority specifications, where the actual priority is a parameter.''

   If the conversion were to Interrupt_Priority, you would not be able to
specify an interrupt priority less than Priority'Last + 1.  Of course, if you
wanted an interrupt to block whatever task is currently running, doing so would
be unwise.


Hope this helps.


Frank

--
Frank Ecke <franke@minet.uni-jena.de>


       In a world without walls and fences, who needs windows and gates?




  parent reply	other threads:[~1998-10-01  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-30  0:00 subtype of value passed to pragma Interrupt_Priority Pat Rogers
1998-09-30  0:00 ` Tucker Taft
1998-10-01  0:00 ` Frank Ecke [this message]
1998-10-01  0:00   ` Pat Rogers
1998-10-01  0:00     ` Jean-Pierre Rosen
1998-10-02  0:00       ` Robert I. Eachus
replies disabled

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