threading module, call thread.interrupt_main()
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Oct 13 23:44:59 EDT 2009
En Thu, 08 Oct 2009 14:18:48 -0300, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar> escribió:
> En Thu, 08 Oct 2009 00:33:04 -0300, §äŽMŠÛ€vªº€@€ù€Ñ
> <command.bbs at alexbbs.twbbs.org> escribió:
>
>> I try to call thread.interrupt_main() function in my child thread's run
>> method
>> which is inherit threading.Thread class.
>> But it didn't work, does anyone know why?
>
> Are you join()ing your child thread? In this case the main thread won't
> acknowledge the exception until the join() call returns -- probably too
> late. A sleep() call isn't interruptible either.
Could you confirm if this was actually your problem? Or something
different?
--
Gabriel Genellina
More information about the Python-list
mailing list