On Wed, Aug 27, 2014 at 1:55 PM, Ervin Hegedüs <airw...@gmail.com> wrote:

> what's the correct way to terminate a thread by itself?


If this is something you need to do as a regular course of business, I'd
share a Queue between the main thread and the target thread. When you want
it to exit, shoot it a command to do so over the queue. If it's a worker
thread of some sort, set it as a daemon thread. When your main thread exits
and there are no other non-daemon threads alive, the program will exit.

Skip
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to