Stop a thread on deletion

2007-08-08 Thread Sjoerd Op 't Land
Hello all, I'm using threading for generating video content. The trouble is how to kill the thread, because there are multiple (simultaneous) owners of a thread. Ideally, a flag would be set when the reference count of the thread becomes zero, causing the run() loop to quit. Example: import

Re: Stop a thread on deletion

2007-08-08 Thread Chris Mellon
On 8/8/07, Sjoerd Op 't Land [EMAIL PROTECTED] wrote: Hello all, I'm using threading for generating video content. The trouble is how to kill the thread, because there are multiple (simultaneous) owners of a thread. Ideally, a flag would be set when the reference count of the thread becomes

Re: Stop a thread on deletion

2007-08-08 Thread Sjoerd Op 't Land
Dear Cris, Thanks a lot. This works! (What you didn't know, there was already such a 'proxy' object in the design, so it isn't the hack it looks ;).) Thanks again, Sjoerd Op 't Land Chris Mellon schreef: On 8/8/07, Sjoerd Op 't Land [EMAIL PROTECTED] wrote: Hello all, I'm using threading