Problem with Thread.join()
nytrokiss at gmail.com
Mon Aug 20 16:58:27 CEST 2007
Post some code so we can see the issue! I would say that the issue is where
your function that you are calling isn't exiting!
On 8/20/07, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
> En Mon, 13 Aug 2007 20:10:53 -0300, Robert Dailey <rcdailey at gmail.com>
> > I have a class that derives from threading.Thread. To signal the thread
> > to
> > exit its infinite loop, I set an Event. Once the thread checks
> > Event.isSet()
> > and it is true, it proceeds to break out of the loop and exit the
> > function.
> > In the main thread, right after calling Event.set(), I call
> > Thread.join() to
> > wait on the thread to exit. However, if I call Thread.join() the
> > application
> > locks up because for some reason calling Thread.join() prevents the
> > thread
> > from exiting. I don't know why. Any help? Thanks...
> Conceptually you're doing it the right way. Post some code demonstrating
> the problem...
> Gabriel Genellina
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list