On Thu, 2009-09-24 at 00:10 +0200, Günther Schmidt wrote:
Hi Duncan,
so ... I have a green light to call gtk from within a forkIO thread for as
long as I make sure that the rts is single threaded?
Yes and that works very nicely (with the cooperative scheduling trick
described in the gtk2hs
On Tue, 2009-09-22 at 17:08 -0400, Brandon S. Allbery KF8NH wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sep 22, 2009, at 11:31 , Günther Schmidt wrote:
Gtk2hs then complains about running in a multithreaded ghc, ie. one
with several real OS threads. Is it possible to start
Am 23.09.2009, 19:29 Uhr, schrieb Duncan Coutts
duncan.cou...@worc.ox.ac.uk:
On Tue, 2009-09-22 at 17:08 -0400, Brandon S. Allbery KF8NH wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sep 22, 2009, at 11:31 , Günther Schmidt wrote:
Gtk2hs then complains about running in a
Well, keep in mind forkIO *might* be a different OS thread (unless
it's bound, IIRC), depending on the number of workers (with -Nx) and
so on.
-Ross
On Sep 23, 2009, at 2:24 PM, Günther Schmidt wrote:
Am 23.09.2009, 19:29 Uhr, schrieb Duncan Coutts duncan.cou...@worc.ox.ac.uk
:
On Tue,
On Wed, 2009-09-23 at 20:24 +0200, Günther Schmidt wrote:
No, but you can unsafeInitGUIForThreadedRTS.
If you observe the foot-shooting restrictions (of which the easiest is
to not use forkIO).
And exactly herein lies the problem :)
I've seen your response to the recent post about
On Wed, 2009-09-23 at 15:52 -0400, Ross Mellgren wrote:
Well, keep in mind forkIO *might* be a different OS thread
Yes.
(unless it's bound, IIRC)
In which case it's guaranteed to be on a different OS thread..
depending on the number of workers (with -Nx) and so on.
The number of
Hi Duncan,
so ... I have a green light to call gtk from within a forkIO thread for as
long as I make sure that the rts is single threaded?
BTW: I was already strongly put off using unsafeInitGUIwForThreadedRTS but
thanks for the warning.
Thus my back to my original question: Can I start
Hi,
I'm trying to test some gtk2hs gui code without compiling it first, just
by using runghc.
Gtk2hs then complains about running in a multithreaded ghc, ie. one with
several real OS threads. Is it possible to start runghc single-threaded?
Günther
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sep 22, 2009, at 11:31 , Günther Schmidt wrote:
Gtk2hs then complains about running in a multithreaded ghc, ie. one
with several real OS threads. Is it possible to start runghc
single-threaded?
No, but you can unsafeInitGUIForThreadedRTS.