Re: threading module, call thread.interrupt_main()

2009-10-13 Thread Gabriel Genellina
En Thu, 08 Oct 2009 14:18:48 -0300, Gabriel Genellina  
gagsl-...@yahoo.com.ar escribió:
En Thu, 08 Oct 2009 00:33:04 -0300, §äŽmŠÛ€vªº...@€ù€Ñ  
command@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

--
http://mail.python.org/mailman/listinfo/python-list


threading module, call thread.interrupt_main()

2009-10-08 Thread ���m�ۤv...@����
Sorry to ask, but i don't know how to solve it.

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?

Thanks a lot!!

--
※Post by command   from 59-124-255-226.HINET-IP.
老鼠的香香乳酪洞˙電子佈告欄系統˙alexbbs.twbbs.org˙140.113.166.7
-- 
http://mail.python.org/mailman/listinfo/python-list