On Mon, 2007-08-06 at 09:13 +1000, Josh Stewart wrote: > On a secondary note and in the hopes of saving others some pain, I > discovered that if you're using python with clutter and are making use > of multiple threads, then you need to execute the following line > before the clutter.main() loop is started: > gtk.threads_init() > > Failing to do so will cause strange things to happen in your threads, > the most likely being that they will simply stop executing randomly. > This might be obvious to anyone who has worked with gtk and threads in > python before, but it might save someone some time.
yes. clutter is not thread aware, at the moment, so you should never *ever* attempt to call clutter functions from different threads. a thread-aware patch for clutter trunk is attached to bug #429 [1], which should make clutter work like gtk+. actually, if people experimenting with threads could apply it and test their applications with it, it would be greatly appreciated. :-) ciao, Emmanuele. +++ [1] http://bugzilla.o-hand.com/show_bug.cgi?id=429 -- Emmanuele Bassi, OpenedHand Ltd. Unit R, Homesdale Business Centre 216-218 Homesdale Rd., Bromley - BR12QZ http://www.o-hand.com -- To unsubscribe send a mail to [EMAIL PROTECTED]
