stop a thread safetely

Peter Hansen peter at engcorp.com
Fri May 13 09:10:13 EDT 2005


Zunbeltz Izaola wrote:
> I have a wxPython application that call makes a thread (with threading
> module). In some moment i've to stop the thread but i need to finish a 
> funtion in the thread before it can stop. How can i achive this?

How did you intend to stop the thread in a manner which might be unsafe?
(Hint, unless you're doing something unusual, you can't.)

-Peter



More information about the Python-list mailing list