comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: GNAT bending signal handlers
Date: 28 May 2003 18:19:43 -0400
Date: 2003-05-28T18:19:43-04:00	[thread overview]
Message-ID: <wcc8ysqyark.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 6a6390b8.0305140439.61b00850@posting.google.com

okellogg@freenet.de (Oliver Kellogg) writes:

> Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message news:<wccy91bm0lj.fsf@shell01.TheWorld.com>...
> > 
> > GNAT supports a pragma Unreserve_All_Interrupts, which I found to be
> > necessary when I wanted to handle SIGINT.  I don't know if that's
> > related to your problem...
> 
> Great! That did the trick.
> 
> Many thanks.

You're welcome.

I've wondered whether the whole idea of "reserved interrupts" makes
sense.  I mean, why should the RM *require* the implementation to raise
exceptions when the user hooks a reserved interrupt?  Interrupts are
inherently implementation dependent anyway.  It seems to me, if the user
wants to hook the timer interrupt, the user should be allowed to do so.
Maybe that means that delay statements don't work, but so what?  Maybe
the user doesn't have any delay statements.  If you're handling
interrupts, you have to know what you're doing.  You have to know what
they mean on your implementation, and you have to know about any
interactions with your compiler's run-time system.

- Bob



      reply	other threads:[~2003-05-28 22:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-12  9:29 GNAT bending signal handlers Oliver Kellogg
2003-05-12 17:32 ` Mark Johnson
2003-05-13 11:05   ` Oliver Kellogg
2003-05-13 13:33     ` Mark Johnson
2003-05-13 13:34     ` Robert A Duff
2003-05-14 12:39       ` Oliver Kellogg
2003-05-28 22:19         ` Robert A Duff [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