comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Need info about Ada tasks
Date: Sat, 27 Sep 2008 09:48:19 +0200
Date: 2008-09-27T09:48:21+02:00	[thread overview]
Message-ID: <12s4l1gxb6u34.1dpj584j611zw.dlg@40tude.net> (raw)
In-Reply-To: gbki0f$h58$1@jacob-sparre.dk

On Sat, 27 Sep 2008 00:56:59 -0500, Randy Brukardt wrote:

> "Fionn Mac Cumhaill" <invisible@hiding.from.spam> wrote in message 
> news:6vlpd4tho80qpm9vduvhggdeg3np867cvc@4ax.com...
>> On Fri, 26 Sep 2008 06:21:54 -0400, Stephen Leake
>> <stephen_leake@stephe-leake.org> wrote:
>>
>>>Fionn Mac Cumhaill <invisible@hiding.from.spam> 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



      reply	other threads:[~2008-09-27  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 13:31 Need info about Ada tasks Fionn Mac Cumhaill
2008-09-25 13:49 ` Dmitry A. Kazakov
2008-09-26  5:06   ` Fionn Mac Cumhaill
2008-09-26 10:21 ` Stephen Leake
2008-09-26 12:46   ` Fionn Mac Cumhaill
2008-09-27  5:56     ` Randy Brukardt
2008-09-27  7:48       ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox