From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9498cf5655316a,start X-Google-Attributes: gid103376,public From: Armin Subject: Ada83 and Ada95 interrupt handling Date: 1999/02/23 Message-ID: <36D303B8.B1AB9A49@swol.de>#1/1 X-Deja-AN: 447588064 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: 23 Feb 1999 21:18:39 +0100, 195.238.141.53 Organization: personal MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-23T00:00:00+00:00 List-Id: I am porting an Ada83 application to Ada95. In Ada83 there was a construction known as interrupt entry. Assume we have the following task (with two interrupt entrys from a DSP and a timer source) task type A_Task is entry Startup; entry DSP_Interrupt; entry Timer_Interrupt; for DSP_Interrupt use at System.Value("16#xxxxxxxx#"); for Timer_Interrupt use at System.Value("16#xxxxxxxx#"); pragma Priority (Task_Priority.Of_A_Task); end A_Task; The task waits for the occurence of either the DSP or the timer (to avoid blocking): ... ... select accept DSP_Interrupt; -- wait for interrupt of DSP ... or accept Timer_Interrupt; -- or of timer (to avoid blocking) ... end select; ... ... How can I do the same thing in Ada95 ? Thanks in advance ! Armin