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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ddc02527645a844 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-30 22:32:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!cyclone1.gnilink.net!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: <6jIha.35142$ja4.2255611@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: tasking with GNAT 3.14p on windows X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Mon, 31 Mar 2003 06:32:11 GMT NNTP-Posting-Host: 12.86.37.161 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1049092331 12.86.37.161 (Mon, 31 Mar 2003 06:32:11 GMT) NNTP-Posting-Date: Mon, 31 Mar 2003 06:32:11 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:35815 Date: 2003-03-31T06:32:11+00:00 List-Id: "James S. Rogers" wrote in message news:W4Oha.35749$ja4.2291095@bgtnsc05-news.ops.worldnet.att.net... > "Jano" wrote in message > news:MPG.18f18ac32e4a300d9896c8@News.CIS.DFN.DE... > > James S. Rogers dice... > > > "Bernd Specht" wrote in message > > > news:Xns934E8C5D49EFBerndSpechtgmxcom@62.153.159.134... > > > > Hi, > > > > > > > > I tried an example from "Barnes, 18.8", but it didn't work as > expected. > > > Any > > > > ideas? > > > > > > > > with Text_IO; use Text_IO; > > > > > > > > procedure TaskTest is > > > > begin > > > > select > > > > delay 3.0; > > > > put_line ("aborted"); > > > > then abort > > > > loop > > > > null; -- modified > > > > end loop; > > > > end select; > > > > end TaskTest; > > > > > > (...) > > > The null command will reliably take less than 3.0 seconds to complete. > > > > It's inside of a neverending loop. > > And optimization will remove the loop, leaving a single null statement. I tried asynchronous transfer of control using the free Aonix compiler. It worked on my Windows 98 laptop. Jim Rogers