Re: Threading woes

Jon Harrop <[email protected]> Sat, 6 Feb 2010 23:04:47 +0000
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Organization Flying Frog Consultancy Ltd.
Message-ID <[email protected]>
On Saturday 06 February 2010 05:25:08 Jacques Garrigue wrote:
> This just looks like you didn't initialize gtk.
> You need either to add a call to GMain.init or to link with
> gtkInit.cmx.

Ok. That gets the program to run but it just recovers the original problem: 
once the GUI starts my worker thread barely gets scheduled and little 
computation gets done but the whole app burns 100% CPU.

I guess either my code is just too slow or all the time is being spent 
redrawing in the GUI thread and I need to yield the UI thread or redraw after 
a timeout.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e