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: 103376,ce290b2dd8bc80e8,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cycny01.gnilink.net!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!nwrddc02.gnilink.net.POSTED!72fcb693!not-for-mail From: Fionn Mac Cumhaill Newsgroups: comp.lang.ada Subject: Need info about Ada tasks Message-ID: <1r3nd4190fqnicb4tdebo1ctt70cjetnhi@4ax.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 25 Sep 2008 13:31:27 GMT NNTP-Posting-Host: 71.170.53.73 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1222349487 71.170.53.73 (Thu, 25 Sep 2008 09:31:27 EDT) NNTP-Posting-Date: Thu, 25 Sep 2008 09:31:27 EDT Xref: g2news1.google.com comp.lang.ada:2084 Date: 2008-09-25T13:31:27+00:00 List-Id: I've been using Ada for several years now, but I have not needed to do anything with tasking. I have decided that I need to learn it, and have a simple project for it, but I am finding comprehensible information to hard to find. Cohen's book has a lot of information, but I am finding it to be very dense reading, and a few examples would be very useful. What I need to do: I am using the MingW Ada compiler and the GWindows packages on Windows XP. I am writing a simple program which observes a table in SQL Server 2000 and lists its rows to a visible screen display. I need a simple task structure that can update the display periodically, with a specified wait time between updates. I need to be able to abort the display task at any time when the display is not being updated. My simple solution has a minor problem; I have a select just after the display routine that receives the abort message, but if the message doesn't arrive on time I get another iteration of the loop before the task aborts. How can I make this thing abort immediately, even when I have a delay(60.0) to give a 1-minute delay between display refreshes? I.e., how do I bail out in the middle of a delay?