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-Thread: 103376,ce290b2dd8bc80e8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.241.41.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Need info about Ada tasks Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1r3nd4190fqnicb4tdebo1ctt70cjetnhi@4ax.com> <6vlpd4tho80qpm9vduvhggdeg3np867cvc@4ax.com> Date: Sat, 27 Sep 2008 09:48:19 +0200 Message-ID: <12s4l1gxb6u34.1dpj584j611zw.dlg@40tude.net> NNTP-Posting-Date: 27 Sep 2008 09:48:21 CEST NNTP-Posting-Host: 6ec169c7.newsspool4.arcor-online.net X-Trace: DXC=_X?hbR=UlmO0YVY]kmLTlD4IUKo`eP>LE[6LHn;2LCVN[f?a\cDIeCDhd0]i6K X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:2103 Date: 2008-09-27T09:48:21+02:00 List-Id: On Sat, 27 Sep 2008 00:56:59 -0500, Randy Brukardt wrote: > "Fionn Mac Cumhaill" wrote in message > news:6vlpd4tho80qpm9vduvhggdeg3np867cvc@4ax.com... >> On Fri, 26 Sep 2008 06:21:54 -0400, Stephen Leake >> wrote: >> >>>Fionn Mac Cumhaill writes: >>> >>>> 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. >>> >>>Mixing tasking and GUI events can be problematic; only one thread >>>can call GUI functions. > > That's not quite true, in that it's possible to use a binding that allows > multi-task access. Claw was designed to do that (it ensures that Windows is > happy by decoupling the underlying calls from your tasks). We indeed have > several examples that do pretty much what you are trying to do here (having > multiple tasks writing at once to different windows). An addition. It is not always possible to route all events through GUI ones. For example, in our systems we have events at ms rate and faster. No GUI could ever handle this. Our events change the system state independently on rendering. Keyboard, mouse and other GUI events are processed separately. This is the design OP asked for. It works quite well. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de