Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
On 23/11/09 14:12, Axel Simon wrote: > On Mon, 2009-11-23 at 13:35 +, Simon Marlow wrote: >>> On Mon, 2009-11-23 at 11:01 +, Simon Marlow wrote: Axel, this is great news, many thanks for working on it! >> > > Actually, there is still one aspect about ghc's RTS that I would like to > c

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 13:35 +, Simon Marlow wrote: > > On Mon, 2009-11-23 at 11:01 +, Simon Marlow wrote: > >> Axel, this is great news, many thanks for working on it! > Actually, there is still one aspect about ghc's RTS that I would like to clarify. The bug you reported occurs because

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
On 23/11/09 12:46, Axel Simon wrote: > On Mon, 2009-11-23 at 11:01 +, Simon Marlow wrote: >> Axel, this is great news, many thanks for working on it! >> >> I'm interested in using Cairo from multiple threads. What exactly is >> supported there? Can I run an arbitrary Render operation on any

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 13:35 +, Simon Marlow wrote: > What I plan to do is have a thread in the background doing a > high-detail > render, and swap the rendered surface in when it is complete. Every > time an expose event is received, we do a quick low-detail render, > and > instruct the bac

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 20:55 +0800, Andy Stewart wrote: > >> But strange is this error not always occur. > >> > >> If i remove `keyPress` callback. > >> Just fork child process in `socektMain` like below: > >> > >> --> fork in socketMain start > >> <--

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
Axel Simon writes: > On Mon, 2009-11-23 at 19:53 +0800, Andy Stewart wrote: >> It's newsest version of Embedded.hs (that use EventM instead Events) > > I was asking if you used the repository from yesterday because I did fix > some concurrency bugs that could trigger the Xlib message. Could you >

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 19:53 +0800, Andy Stewart wrote: > It's newsest version of Embedded.hs (that use EventM instead Events) I was asking if you used the repository from yesterday because I did fix some concurrency bugs that could trigger the Xlib message. Could you compile against the latest dar

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 11:01 +, Simon Marlow wrote: > Axel, this is great news, many thanks for working on it! > > I'm interested in using Cairo from multiple threads. What exactly is > supported there? Can I run an arbitrary Render operation on any thread > I like? Yes, as long as you ma

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
It's newsest version of Embedded.hs (that use EventM instead Events) But strange is this error not always occur. If i remove `keyPress` callback. Just fork child process in `socektMain` like below: --> fork in socketMain start <-- forkPlu

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
Oh dear, is this with the darcs repository from yesterday? Although I'm not quite sure if this is a concurrency bug at all. Axel. On Mon, 2009-11-23 at 18:55 +0800, Andy Stewart wrote: > Hi all, > > In file `demo/embedded/Embedded.hs` > (or > ) have below code snippets in function `socketMain

[Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
Hi all, In file `demo/embedded/Embedded.hs` (or -- Use GtkSocket and GtkPlug for cross-process embedded. -- Just startup program, press 'Alt-m' to new editor, press `Alt-n` to new terminal. -- And those plug widget (editor, terminal) running in child-process, -- so program won't crash when child

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
Axel, this is great news, many thanks for working on it! I'm interested in using Cairo from multiple threads. What exactly is supported there? Can I run an arbitrary Render operation on any thread I like? Cheers, Simon On 22/11/09 19:58, Axel Simon wrote: > Dear Simon, Duncan, > > -