Re: need to suspend/resume a child thread

2008-11-13 Thread M.-A. Lemburg
On 2008-11-13 02:57, scsoce wrote: > A child thread has a long-time executions, how to suspend it and resume > back the orignial place ? I know it' nature to use singal, but child > thread cannot get signal as Python Manual say. And i dnt like to check > status variable as the long-time executi

Re: need to suspend/resume a child thread

2008-11-12 Thread Miki
Hello, > A child thread has a long-time executions, how to suspend it and resume > back the orignial place ? I don't think you can do it using Python's thread API. You can either use a platform specific API (such as pywin32) or make the thread "cooperative" and wait on a condition/semaphore in som

need to suspend/resume a child thread

2008-11-12 Thread scsoce
A child thread has a long-time executions, how to suspend it and resume back the orignial place ? I know it' nature to use singal, but child thread cannot get signal as Python Manual say. And i dnt like to check status variable as the long-time executions can not or be dirty to stop to do c