[pygtk] PyGTK Thread problem

Antoon Pardon Antoon.Pardon at rece.vub.ac.be
Tue May 1 02:42:11 WST 2007


On Sat, Apr 28, 2007 at 11:39:01PM +0000, Funky Fred wrote:
> 
> >Maybe the idea is usefull for you.
> 
> Hmm. It's definitely something I plan to keep in my head.  I'm a little 
> wary of mucking with the interpreter at that level (that warning about 
> "naive use" of PyThreadState_SetAsyncExc in the documentation definitely 
> would apply to my knowledge level of python internals at this point). 
> However, I may end up having to...
> 
> For now, though, trying to get the threads to exit cleanly is an aesthetic 
> thing (a flag and sys.exit() does the job, albeit with the occasional 
> exception when a thread doesn't check it's flag in time). Heck just going 
> into process explorer and killing the thing is acceptable at this stage. 
> But this may change, and I'll be searching for this e-mail again....

Maybe all you need is the setDaemon method on your threads.

-- 
Antoon Pardon


More information about the pygtk mailing list