50ac881f8b
kill() might get called before run() can actually set self.__alive = 1. This would cause run() to reset self.__alive to 1 after kill() has set it to 0. Use a simple Lock() to make possible to communicate this to run()