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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e25bef67663eb0b1 X-Google-Attributes: gid103376,public X-Google-Thread: 10baf0,e25bef67663eb0b1 X-Google-Attributes: gid10baf0,public X-Google-ArrivalTime: 2001-05-10 06:27:02 PST Path: newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sfo2-feed1.news.digex.net!intermedia!typhoon.sonic.net!out.nntp.be!propagator-dallas!news-in-dallas.newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.windows.x.kde,comp.lang.ada From: Ted Dennison References: <3AF9985D.63B5E511@uundz.de> <3AFA6AEC.6037CD07@uundz.de> Subject: Re: Glueing ADA to C++: Process sharing Message-ID: <4GwK6.911$bi2.69871@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 10 May 2001 09:26:24 EDT Organization: http://www.newsranger.com Date: Thu, 10 May 2001 13:26:24 GMT Xref: newsfeed.google.com comp.windows.x.kde:8957 comp.lang.ada:7461 Date: 2001-05-10T13:26:24+00:00 List-Id: In article <3AFA6AEC.6037CD07@uundz.de>, Tilman Gloetzner says... > >I am using linux 2.4 (I tested it also on version 2.2 -- no difference) >gnatlink links -lgthreads which probably is what Jeff means by "fsu >threads". >> >> It might help if you could tell us what platform you are doing this on, and (if >> you know) what threading system your Ada compiler (Gnat) is using. There's your answer then. "FSU threads" is a system where the Ada tasks all run inside the context of one OS thread. When that thread gives control over to the GUI, it won't get it back until the GUI gives it back. To get the behavior you seem to want, you are probably going to have to use Linux threads instead. That won't give you fully LRM-conformant tasking behavior, but unless you've got a contractual problem with that, it shouldn't be a big deal. Another way of dealing with this problem is to put all the Ada stuff you need to do in the meantime into a procedure that gets called by a GUI timeout event. That's the old-fashioned C way of doing things (GUI's are typically built to work with C). --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com