[pygtk] More Help: Problems with the solution to: threads and
pygtk
John Ehresman
jpe at wingware.com
Sat Oct 7 03:28:38 WST 2006
David Hirschfield wrote:
> Of course, I assume that means that cyclic garbage collection is turned
> off for all threads that run between the time I call gc.disable() and
> gc.enable(), not just the processing thread.
Yes, I think gc.enable(), gc.disable() act globally to enable / disable
collection passes. As others have pointed out, this enables / disables
the collection passes and does not affect whether newly created objects
will be scanned by gc.
I've created a bug for this at
http://bugzilla.gnome.org/show_bug.cgi?id=360250
I think the only workaround for now is to disable the gc while the
threads are running.
John
More information about the pygtk
mailing list