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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab0f7489c063b493 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: GUIs and Ada Tasking Date: 1997/11/09 Message-ID: #1/1 X-Deja-AN: 288112165 X-NNTP-Posting-Host: pogner.demon.co.uk [158.152.70.98] References: <01bceb02$deec6eb0$35ae450a@butterfeild1> <3464e136.6717096@SantaClara01.news.InterNex.Net> Organization: At Home Newsgroups: comp.lang.ada Date: 1997-11-09T00:00:00+00:00 List-Id: 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