comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: GUIs and Ada Tasking
Date: 1997/11/09
Date: 1997-11-09T00:00:00+00:00	[thread overview]
Message-ID: <x7vn2jeufq7.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 3464e136.6717096@SantaClara01.news.InterNex.Net


tmoran@bix.com (Tom Moran) writes:

> >believe Ada tasking cannot coexist with GUI thread
> You are aware of the way messages go to the thread of their Window and
> all that.  Ada tasking can run with the Windows GUI (see, eg, my
> Adtest example in the Claw demos at www.rrsoftware.com/clawdemo.htm)
> but it does take care.

(sorry, lost the original ..)

With X11R6 you can build the libraries (X, Xt) to be thread-aware, but
the only off-the-shelf versions I've seen haven't been built this way.

If the libraries aren't thread-aware, or you're using an earlier X11,
each task must use its own Display connection exclusively (there can
be more than one connection to the same physical screen, so the tasks
can contribute to the same picture, but it is not straightforward to
handle).

I don't know whether there are widget sets (Athena, Motif, Tk) in
thread-safe versions, though.

I put a Linux/GNAT/XFree86-3.2 summary, which might be some help, at
http://www.pogner.demon.co.uk/gnat-x-threads/

-- 
Simon Wright                        Work Email: simon.j.wright@gecm.com
GEC-Marconi Radar & Defence Systems            Voice: +44(0)1705-701778
Command & Information Systems Division           FAX: +44(0)1705-701800




  reply	other threads:[~1997-11-09  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-06  0:00 GUIs and Ada Tasking Paul McDonald
1997-11-08  0:00 ` Tom Moran
1997-11-09  0:00   ` Simon Wright [this message]
1997-11-17  0:00     ` Jean-Claude MAHIEUX
  -- strict thread matches above, loose matches on Subject: below --
1997-11-09  0:00 Tom Moran
replies disabled

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