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,eb16c447b2139225 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Rational APEX Ada95 w/ X11R6 Date: 1999/06/16 Message-ID: #1/1 X-Deja-AN: 490191853 References: <929466176.893.35@news.remarQ.com> <7k6cr9$qk$1@nnrp1.deja.com> NNTP-Posting-Date: Wed, 16 Jun 1999 02:49:27 PDT Newsgroups: comp.lang.ada Date: 1999-06-16T00:00:00+00:00 List-Id: On 15 Jun 1999 20:25, dennison@telepath.com wrote: > In article <929466176.893.35@news.remarQ.com>, > "Brian Kelly" wrote: > > Has anyone programmed using Rational's Ada95 compiler and X11R6? > > > > If so, have you come up w/ any concurrency issues/problems? > > > > I'm currently looking into the feasability of putting these two > products > > together for future products. > > More specifics would help. I think he is refering to the fact that in R6, you can run the X main loop inside its own thread. How do you do this in Ada95? In other words, how can you run the X main loop inside its own Ada task? Does R6 specify what kind of thread runs the main loop? I thought it specified a "Posix thread." If so, how do you guarantee that an Ada task maps to a Posix thread? > For instance, you will need bindings to X. No. All the C calls to X/Motif can be done by a thin C layer, called by a high-level infrastructure written in Ada95. There's no need for Ada bindings to the toolkit directly. > Some very literal (or "thin") bindings are available, as are some > thicker ones that do nifty things like synchornize access so that the > calls are task-safe. Stay away from thick bindings that "synchronize access so that calls are task-safe." This doesn't work. Stay away from thick bindings. Stay away from bindings. > But what's available to you depends on your compiler/OS combination. This is a restatement of the original question.