comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Difficult to describe problem
Date: 20 Jun 2002 10:56:43 -0400
Date: 2002-06-20T15:04:23+00:00	[thread overview]
Message-ID: <uofe6t2vo.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3D11C7BA.8040504@uk.thalesgroup.com

Nige <nigel.scott@uk.thalesgroup.com> writes:

> Hi - Sorry about the ambiguous title of this post, but it's hard to
> sum up the problem.
> 
> <snip discription of tasks and X processing>

One suggestion is to use GtkAda; it already solves this problem.

But if you are doing this to learn how it is done, here are some other
ideas.

Place the event loop task outside both generics, and pass a pointer to
it in the generic formal parameters.

Use a simple procedure for the event loop, not a task. Then the
procedure can be called at any point to get a nested event loop. That
gives you modal dialog boxes, for example.

-- 
-- Stephe



  parent reply	other threads:[~2002-06-20 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20 12:16 Difficult to describe problem Nige
2002-06-20 14:04 ` Dr. Michael Paus
2002-06-20 14:56 ` Stephen Leake [this message]
2002-06-21 15:09 ` Ted Dennison
2002-06-22 18:17   ` Simon Wright
2002-07-08  7:37     ` Nige
replies disabled

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