comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Protected Objects and Interrupt Handlers
Date: Thu, 25 Feb 2016 22:20:21 -0500
Date: 2016-02-25T22:20:21-05:00	[thread overview]
Message-ID: <uqgvcbp6qi5ge9064l4fu9qsqnkqdf17ec@4ax.com> (raw)
In-Reply-To: lywppslr0t.fsf@pushface.org

On Thu, 25 Feb 2016 15:59:46 +0000, Simon Wright <simon@pushface.org>
declaimed the following:

>Maciej Sobczak <see.my.homepage@gmail.com> writes:
>
>> Note also that it is easy to combine these two approaches - just let
>> the interrupt handler (a procedure) interact with a dedicated
>> protected object (by forwarding to its procedures) as if it was a
>> regular work-item producing task - which, conceptually, it really is.
>
>I think this approach might have problems; if the PO doesn't expect to
>be called in an interrupt context, it may do things (like block) which
>an ISR should never do.
>
	As I recall, Ada protected objects are not supposed to contain anything
that could block.

http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/node25.htm#SECTION00814000000000000000
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

  reply	other threads:[~2016-02-26  3:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 22:25 Protected Objects and Interrupt Handlers Jere
2016-02-23 23:09 ` Simon Wright
2016-02-24 14:38   ` Jere
2016-02-24 18:29     ` Simon Wright
2016-02-24 21:37       ` Jere
2016-02-25 15:14 ` Maciej Sobczak
2016-02-25 15:59   ` Simon Wright
2016-02-26  3:20     ` Dennis Lee Bieber [this message]
2016-02-26  8:12       ` Simon Wright
2016-02-27 18:06     ` Maciej Sobczak
2016-02-25 16:02   ` Simon Wright
2016-02-25 17:40     ` Tero Koskinen
2016-02-25 19:49       ` Simon Wright
2016-03-13  8:10         ` Simon Wright
replies disabled

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