From: Andy G. <ha...@gi...> - 2009-10-13 14:45:40
|
On 13 Oct 2009, at 12:59, Eric Kow wrote: > On Mon, Oct 12, 2009 at 13:26:34 +0100, Andy Gimblett wrote: >> I just wanted to ask whether the FAQ entry on multiple threads at >> >> http://haskell.org/haskellwiki/WxHaskell/FAQ >> >> is still the best advice? It mentions GHC 6.0, but I wondered if >> things had changed since then. > > But it looks like you could get some insights from > > http://docs.wxwidgets.org/stable/wx_wxthreadoverview.html#wxthreadoverview Yeah, I spotted that, and for now the plan is to use the idle event and split my long-running operation into tiny chunks, called repeatedly by that. It's not very satisfying but I guess it will work. > Note also that the Process sample has not changed since the last > commit > from Daan. Maybe you could try compiling it? I did; it compiles, and works nicely, yes. But I don't want to launch external processes, which is what that part of the library seems to be about? > I also noticed > http://snipplr.com/view/17538/wxhaskell-multithread--custom-event-example/ I'd seen that too, but not looked too closely because it didn't appear to be so relevant. Maybe I should look more closely at evtHandlerProcessEvent and friends, then. Thanks! -Andy |