comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Glueing ADA to C++: Process sharing
Date: Thu, 10 May 2001 13:26:24 GMT
Date: 2001-05-10T13:26:24+00:00	[thread overview]
Message-ID: <4GwK6.911$bi2.69871@www.newsranger.com> (raw)
In-Reply-To: 3AFA6AEC.6037CD07@uundz.de

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



  reply	other threads:[~2001-05-10 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09 19:19 Glueing ADA to C++: Process sharing Tilman Gloetzner
2001-05-09 17:39 ` Ted Dennison
2001-05-10 10:18   ` Tilman Gloetzner
2001-05-10 13:26     ` Ted Dennison [this message]
2001-05-09 23:33 ` Jeff Creem
2001-05-10 10:44   ` Tilman Gloetzner
replies disabled

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