Delivered-To: garrigue at math.nagoya-u.ac.jp Delivered-To: lablgtk at yquem.inria.fr From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] Threading woes Date: Sat, 6 Feb 2010 23:04:47 +0000 References: <201002060530.16615.jon at ffconsultancy.com> <20100206.142508.58450194.garrigue@math.nagoya-u.ac.jp> In-Reply-To: <20100206.142508.58450194.garrigue at math.nagoya-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002062304.47119.jon at ffconsultancy.com> Cc: Jacques Garrigue Status: U 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 _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk