Concurrency (was: Re: [GUI] Re: events & callbacks)
Axel Simon
A.Simon@ukc.ac.uk
Thu, 13 Mar 2003 09:08:50 +0000
On Wed, Mar 12, 2003 at 07:02:41PM +0100, Nick Name wrote:
> > Once we have OS threads, attaching something to the idle handler of
> > (Gtk's) event loop is not necessary anymore since the Haskell RTS
> > will continue to run. But every call to Gtk (or whatever library)
> > will be channeled through this one thread. Is this a restriction?
>
> I hope not. Communication primitives are to be used sometimes :) But I
> am btw no expert on the subject, it's just an impression.
>
> Maybe the CGA could do this channeling itself? Would it be an headache
> in your opinion? Tests can already be done, since it's possible to
> compile GHC with -threaded-RTS or something like that.
I just replied to Wolfgang asking what threadsafe means in C calls. As far
as the rumors in my head are concerned the "channelling" you mention is
then done by the FFI.
Axel.