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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e69505d5161d7d41 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Interrupt handler and Ada.Real_Time.Timing_Events References: <4A0E06E6.4000209@codelabs.ch> In-Reply-To: <4A0E06E6.4000209@codelabs.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1242434334 173.16.158.68 (Sat, 16 May 2009 00:38:54 GMT) NNTP-Posting-Date: Sat, 16 May 2009 00:38:54 GMT Organization: AT&T ASP.att.net Date: Sat, 16 May 2009 00:38:54 GMT Xref: g2news2.google.com comp.lang.ada:5866 Date: 2009-05-16T00:38:54+00:00 List-Id: Reto Buerki wrote: > > We are using Ada.Real_Time.Timing_Events to implement an event-driven > architecture in our application. The Timing_Event type seemed perfect > for this. Timing_Events are certainly suited for this. However, they were added in the most recent revision of the language. Event-driven systems were implemented in Ada long before that revision. Should you be unable to get your application to work with Timing_Events, you can use the old-fashioned way to achieve the same thing. This is done by having tasks that execute delay statements and then call the appropriate protected operations. Effectively, a Timing_Event object is shorthand for such a task. -- Jeff Carter "From this day on, the official language of San Marcos will be Swedish." Bananas 28